Versions in this module Expand all Collapse all v1 v1.1.3 Jan 1, 2023 Changes in this version + type API interface + Debug func() + Describe func() ClientInfo + GetNodeInfo func() (nodeInfo *NodeInfo, err error) + GetNodeRule func() (ruleList *[]DetectRule, err error) + GetTransitNodeInfo func() (transitnodeinfo *TransitNodeInfo, 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 + type Config struct + APIHost string + DeviceLimit int + Key string + NodeID int + RuleListPath string + SpeedLimit float64 + Timeout int + type DetectResult struct + RuleID int + UID int + type DetectRule struct + ID int + Pattern *regexp.Regexp + type NodeInfo struct + Address string + AllowInsecure bool + AlterID uint16 + CypherMethod string + EnableTLS bool + Fingerprint string + HeaderType string + Host string + ListenIP string + NodeID int + NodeType string + Path string + Port uint32 + ProxyProtocol bool + Quic_key string + Quic_security string + RejectUnknownSNI bool + RelayNodeID int + ServiceName string + Sniffing bool + SpeedLimit uint64 + TLSType string + TransportProtocol string + type NodeStatus struct + CPU float64 + Disk float64 + Mem float64 + Uptime uint64 + type OnlineUser struct + IP string + UID int + type TransitNodeInfo struct + Address string + AllowInsecure bool + AlterID uint16 + CypherMethod string + EnableTLS bool + Fingerprint string + Flow string + HeaderType string + Host string + ListenIP string + NodeID int + NodeType string + Path string + Port uint32 + ProxyProtocol bool + Quic_key string + Quic_security string + RejectUnknownSNI bool + ServiceName string + Sniffing bool + SpeedLimit uint64 + TLSType string + TransportProtocol string + type UserInfo struct + DeviceLimit int + Email string + Passwd string + Port int + SpeedLimit uint64 + UID int + UUID string + type UserTraffic struct + Download int64 + Email string + UID int + Upload int64