Versions in this module Expand all Collapse all v1 v1.2.3 Dec 7, 2024 Changes in this version + const NodeNotModified + const RuleNotModified + const UserNotModified + 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 + Key string + NodeID int + NodeType string + RuleListPath string + SpeedLimit float64 + Timeout int + VlessFlow string + type DetectResult struct + RuleID int + UID int + type DetectRule struct + ID int + Pattern *regexp.Regexp + type NodeInfo struct + AlterID uint16 + CypherMethod string + EnableREALITY bool + EnableTLS bool + EnableVless bool + FakeType string + Header json.RawMessage + Host string + NameServerConfig []*conf.NameServerConfig + NodeID int + NodeType string + Path string + Port uint32 + REALITYConfig *REALITYConfig + ServerKey string + ServiceName string + SpeedLimit uint64 + TransportProtocol string + VlessFlow string + type NodeStatus struct + CPU float64 + Disk float64 + Mem float64 + Uptime uint64 + type OnlineUser struct + IP string + UID int + type REALITYConfig struct + Dest string + MaxClientVer string + MaxTimeDiff uint64 + MinClientVer string + PrivateKey string + ProxyProtocolVer uint64 + ServerNames []string + ShortIds []string + type UserInfo struct + AlterID uint16 + DeviceLimit int + Email string + Method string + Passwd string + Port uint32 + SpeedLimit uint64 + UID int + UUID string + type UserTraffic struct + Download int64 + Email string + UID int + Upload int64