Documentation
¶
Index ¶
- func RegisterCore(t string, f func(c *conf.CoreConfig) (Core, error))
- func RegisteredCore() []string
- type AddUsersParams
- type Core
- type Selector
- func (s *Selector) AddNode(tag string, info *panel.NodeInfo, option *conf.Options) error
- func (s *Selector) AddUsers(p *AddUsersParams) (added int, err error)
- func (s *Selector) Close() error
- func (s *Selector) DelNode(tag string) error
- func (s *Selector) DelUsers(users []panel.UserInfo, tag string) error
- func (s *Selector) GetUserTraffic(tag, uuid string, reset bool) (up int64, down int64)
- func (s *Selector) Protocols() []string
- func (s *Selector) Start() error
- func (s *Selector) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCore ¶
func RegisterCore(t string, f func(c *conf.CoreConfig) (Core, error))
func RegisteredCore ¶
func RegisteredCore() []string
Types ¶
type AddUsersParams ¶
type Core ¶
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
}
func NewSelector ¶
func NewSelector(c []conf.CoreConfig) (Core, error)
Click to show internal directories.
Click to hide internal directories.