Versions in this module Expand all Collapse all v0 v0.9.0 Apr 24, 2023 Changes in this version type NodeInfo + NameServerConfig []*conf.NameServerConfig + ServerKey string v0.8.4 Sep 21, 2022 v0.8.2 Sep 1, 2022 v0.8.1 Aug 19, 2022 v0.8.0 Jun 9, 2022 Changes in this version + type API interface + Debug func() + Describe func() ClientInfo + GetNodeInfo func() (nodeInfo *NodeInfo, err error) + GetNodeRule func() (ruleList *[]DetectRule, err error) + GetUserList func() (userList *[]UserInfo, err error) + ReportIllegal func(detectResultList *[]DetectResult) (err error) + ReportNodeOnlineUsers func(onlineUser *[]OnlineUser) (err error) + ReportNodeStatus func(nodeStatus *NodeStatus) (err error) + ReportUserTraffic func(userTraffic *[]UserTraffic) (err error) + type ClientInfo struct + APIHost string + Key string + NodeID int + NodeType string + type Config struct + APIHost string + DeviceLimit int + DisableCustomConfig bool + EnableVless bool + EnableXTLS bool + Key string + NodeID int + NodeType string + RuleListPath string + SpeedLimit float64 + Timeout int + type DetectResult struct + RuleID int + UID int + type DetectRule struct + ID int + Pattern *regexp.Regexp + type NodeInfo struct + AlterID int + CypherMethod string + EnableTLS bool + EnableVless bool + FakeType string + Header json.RawMessage + Host string + NodeID int + NodeType string + Path string + Port int + ServiceName string + SpeedLimit uint64 + TLSType string + TransportProtocol string + type NodeStatus struct + CPU float64 + Disk float64 + Mem float64 + Uptime int + type OnlineUser struct + IP string + UID int + type UserInfo struct + AlterID int + DeviceLimit int + Email string + Method string + Obfs string + ObfsParam string + Passwd string + Port int + Protocol string + ProtocolParam string + SpeedLimit uint64 + UID int + UUID string + type UserTraffic struct + Download int64 + Email string + UID int + Upload int64