Versions in this module Expand all Collapse all v0 v0.2.2 Apr 2, 2024 v0.2.1 Mar 11, 2024 Changes in this version + func InboundBuilder(config *Config, nodeInfo *api.NodeInfo, tag string) (*core.InboundHandlerConfig, error) + func OutboundBuilder(config *Config, nodeInfo *api.NodeInfo, tag string) (*core.OutboundHandlerConfig, error) + type AutoSpeedLimitConfig struct + Limit int + LimitDuration int + LimitSpeed int + WarnTimes int + type Config struct + AutoSpeedLimitConfig *AutoSpeedLimitConfig + CertConfig *mylego.CertConfig + DNSType string + DisableGetRule bool + DisableIVCheck bool + DisableSniffing bool + DisableUploadTraffic bool + EnableDNS bool + EnableProxyProtocol bool + ListenIP string + SendIP string + UpdatePeriodic int + type Controller struct + Tag string + func New(server *core.Instance, api api.API, config *Config, panelType string) *Controller + func (c *Controller) AddInboundLimiter(tag string, nodeSpeedLimit uint64, userList *[]api.UserInfo) error + func (c *Controller) Close() error + func (c *Controller) DeleteInboundLimiter(tag string) error + func (c *Controller) GetDetectResult(tag string) (*[]api.DetectResult, error) + func (c *Controller) GetOnlineDevice(tag string) (*[]api.OnlineUser, error) + func (c *Controller) Start() error + func (c *Controller) UpdateInboundLimiter(tag string, updatedUserList *[]api.UserInfo) error + func (c *Controller) UpdateRule(tag string, newRuleList []api.DetectRule) error + type LimitInfo struct