Versions in this module Expand all Collapse all v0 v0.0.1 Jul 11, 2022 Changes in this version + type APIClient struct + APIHost string + 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(nodeInfoResponse *NodeInfoResponse) (*api.NodeInfo, error) + func (c *APIClient) ParseTrojanNodeResponse(nodeInfoResponse *NodeInfoResponse) (*api.NodeInfo, error) + func (c *APIClient) ParseUserListResponse(userInfoResponse *[]UserResponse) (*[]api.UserInfo, error) + func (c *APIClient) ParseV2rayNodeResponse(nodeInfoResponse *NodeInfoResponse) (*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 IllegalItem struct + ID int + UID int + type NodeInfoResponse struct + AlterId int + Class int + Grpc bool + Host string + Method string + Network string + Path string + Port int + RawServerString string + Security string + Sni string + SpeedLimit float64 + TrafficRate float64 + type OnlineUser struct + IP string + UID int + type PostData struct + NodeId int + Onlines interface{} + Type string + Users interface{} + type Response struct + Data json.RawMessage + Ret uint + type RuleItem struct + Content string + ID int + type SystemLoad struct + Load string + Uptime string + type UserResponse struct + DeviceLimit int + ID int + Passwd string + SpeedLimit float64 + type UserTraffic struct + Download int64 + Ip string + UID int + Upload int64