mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 18:08:14 -05:00
25 lines
546 B
Go
25 lines
546 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) error
|
|
Protocols() []string
|
|
Type() string
|
|
}
|