V2bX/core/interface.go

25 lines
568 B
Go
Raw Permalink Normal View History

package core
import (
2023-07-29 07:27:15 -04:00
"github.com/InazumaV/V2bX/api/panel"
"github.com/InazumaV/V2bX/conf"
)
type AddUsersParams struct {
2023-08-19 08:06:42 -04:00
Tag string
Users []panel.UserInfo
*panel.NodeInfo
}
2023-08-19 08:06:42 -04:00
type Core interface {
Start() error
Close() error
2023-07-29 06:47:47 -04:00
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)
2025-01-10 02:33:05 -05:00
DelUsers(users []panel.UserInfo, tag string, info *panel.NodeInfo) error
2023-06-09 09:20:41 -04:00
Protocols() []string
2023-08-20 03:13:52 -04:00
Type() string
}