Documentation
¶
Index ¶
- func RegisterCore(t string, f func(c *conf.CoreConfig) (Core, error))
- func RegisteredCore() []string
- type AddUsersParams
- type ArtXRuntimeStats
- type Core
- type RuntimeStats
- type RuntimeStatsProvider
- 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, info *panel.NodeInfo) error
- func (s *Selector) GetUserTrafficSlice(tag string, reset bool) ([]panel.UserTraffic, error)
- func (s *Selector) Protocols() []string
- func (s *Selector) RuntimeStats(tag string) RuntimeStats
- 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 ArtXRuntimeStats ¶ added in v0.13.6
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)
GetUserTrafficSlice(tag string, reset bool) ([]panel.UserTraffic, error)
DelUsers(users []panel.UserInfo, tag string, info *panel.NodeInfo) error
Protocols() []string
Type() string
}
func NewSelector ¶
func NewSelector(c []conf.CoreConfig) (Core, error)
type RuntimeStats ¶ added in v0.13.6
type RuntimeStats struct {
ActiveConnections uint64
TotalConnections uint64
ArtX *ArtXRuntimeStats
}
type RuntimeStatsProvider ¶ added in v0.13.6
type RuntimeStatsProvider interface {
RuntimeStats(tag string) RuntimeStats
}
RuntimeStatsProvider exposes protocol-owned process counters without making them part of the mutation-oriented Core interface.
type Selector ¶
type Selector struct {
// contains filtered or unexported fields
}
func (*Selector) GetUserTrafficSlice ¶
func (*Selector) RuntimeStats ¶ added in v0.13.7
func (s *Selector) RuntimeStats(tag string) RuntimeStats
RuntimeStats forwards read-only protocol counters to the concrete core that owns the node. Multi-core deployments otherwise hide optional capabilities implemented by an individual core behind the Selector wrapper.
Click to show internal directories.
Click to hide internal directories.