mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 09:58:14 -05:00
2f1362067b
Some checks failed
Build and Release / build (386, freebsd) (push) Has been cancelled
Build and Release / build (386, linux) (push) Has been cancelled
Build and Release / build (386, windows) (push) Has been cancelled
Build and Release / build (amd64, darwin) (push) Has been cancelled
Build and Release / build (amd64, freebsd) (push) Has been cancelled
Build and Release / build (amd64, linux) (push) Has been cancelled
Build and Release / build (amd64, windows) (push) Has been cancelled
Build and Release / build (arm, 5, linux) (push) Has been cancelled
Build and Release / build (arm, 6, linux) (push) Has been cancelled
Build and Release / build (arm, 7, freebsd) (push) Has been cancelled
Build and Release / build (arm, 7, linux) (push) Has been cancelled
Build and Release / build (arm64, android) (push) Has been cancelled
Build and Release / build (arm64, darwin) (push) Has been cancelled
Build and Release / build (arm64, freebsd) (push) Has been cancelled
Build and Release / build (arm64, linux) (push) Has been cancelled
Build and Release / build (mips, linux) (push) Has been cancelled
Build and Release / build (mips64, linux) (push) Has been cancelled
Build and Release / build (mips64le, linux) (push) Has been cancelled
Build and Release / build (mipsle, linux) (push) Has been cancelled
Build and Release / build (ppc64, linux) (push) Has been cancelled
Build and Release / build (ppc64le, linux) (push) Has been cancelled
Build and Release / build (riscv64, linux) (push) Has been cancelled
Build and Release / build (s390x, linux) (push) Has been cancelled
25 lines
568 B
Go
25 lines
568 B
Go
package core
|
|
|
|
import (
|
|
"github.com/InazumaV/V2bX/api/panel"
|
|
"github.com/InazumaV/V2bX/conf"
|
|
)
|
|
|
|
type AddUsersParams struct {
|
|
Tag string
|
|
Users []panel.UserInfo
|
|
*panel.NodeInfo
|
|
}
|
|
|
|
type Core interface {
|
|
Start() error
|
|
Close() error
|
|
AddNode(tag string, info *panel.NodeInfo, config *conf.Options) error
|
|
DelNode(tag string) error
|
|
AddUsers(p *AddUsersParams) (added int, err error)
|
|
GetUserTraffic(tag, uuid string, reset bool) (up int64, down int64)
|
|
DelUsers(users []panel.UserInfo, tag string, info *panel.NodeInfo) error
|
|
Protocols() []string
|
|
Type() string
|
|
}
|