Versions in this module Expand all Collapse all v1 v1.1.1 Feb 22, 2024 Changes in this version + func RegisterCore(t string, f func(c *conf.CoreConfig) (Core, error)) + func RegisteredCore() []string + type AddUsersParams struct + Tag string + Users []panel.UserInfo + type Core interface + AddNode func(tag string, info *panel.NodeInfo, config *conf.Options) error + AddUsers func(p *AddUsersParams) (added int, err error) + Close func() error + DelNode func(tag string) error + DelUsers func(users []panel.UserInfo, tag string) error + GetUserTraffic func(tag, uuid string, reset bool) (up int64, down int64) + Protocols func() []string + Start func() error + Type func() string + func NewCore(c []conf.CoreConfig) (Core, error) + func NewSelector(c []conf.CoreConfig) (Core, error) + type Selector struct + 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