Versions in this module Expand all Collapse all v0 v0.0.1 Jul 11, 2022 Changes in this version + type APIClient struct + APIHost string + ConfigResp *simplejson.Json + DeviceLimit int + EnableVless bool + EnableXTLS bool + Key string + LocalRuleList []api.DetectRule + NodeID int + NodeType string + SpeedLimit float64 + 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, *[]string, error) + func (c *APIClient) GetUserList() (UserList *[]api.UserInfo, err error) + func (c *APIClient) ParseSSNodeResponse() (*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 UserTraffic struct + Download int64 + UID int + Upload int64