Versions in this module Expand all Collapse all v1 v1.2.3 Dec 7, 2024 Changes in this version + type APIClient struct + APIHost string + ConfigResp *simplejson.Json + DeviceLimit int + EnableVless bool + Key string + LocalRuleList []api.DetectRule + NodeID int + NodeType string + SpeedLimit float64 + VlessFlow string + func New(apiConfig *api.Config) *APIClient + func (c *APIClient) Debug() + func (c *APIClient) Describe() api.ClientInfo + func (c *APIClient) GetNodeInfo() (nodeInfo *api.NodeInfo, err error) + func (c *APIClient) GetNodeRule() (*[]api.DetectRule, error) + func (c *APIClient) GetUserList() (UserList *[]api.UserInfo, err error) + func (c *APIClient) ParseSSNodeResponse(nodeInfoResponse *simplejson.Json) (*api.NodeInfo, error) + func (c *APIClient) ParseTrojanNodeResponse(nodeInfoResponse *simplejson.Json) (*api.NodeInfo, error) + func (c *APIClient) ParseV2rayNodeResponse(nodeInfoResponse *simplejson.Json) (*api.NodeInfo, error) + func (c *APIClient) ReportIllegal(detectResultList *[]api.DetectResult) error + func (c *APIClient) ReportNodeOnlineUsers(onlineUserList *[]api.OnlineUser) error + func (c *APIClient) ReportNodeStatus(nodeStatus *api.NodeStatus) (err error) + func (c *APIClient) ReportUserTraffic(userTraffic *[]api.UserTraffic) error + type NodeOnline struct + IP string + UID int + type NodeStatus struct + CPU string + Disk string + Mem string + Net string + Uptime int + type REALITYConfig struct + Dest string + MaxClientVer string + MaxTimeDiff uint64 + MinClientVer string + PrivateKey string + ProxyProtocolVer uint64 + ServerNames []string + ShortIds []string + type UserTraffic struct + Download int64 + UID int + Upload int64