Versions in this module Expand all Collapse all v1 v1.4.1 May 30, 2023 Changes in this version + const ApiPath + const ApiServer + const ApiType + const ApiVersion + type BaseConfig struct + PullInterval any + PushInterval any + type Client struct + APIHost string + Key string + LocalRuleList []*regexp.Regexp + NodeId int + NodeType string + func New(c *conf.ApiConfig) (*Client, error) + func (c *Client) Debug() + func (c *Client) GetNodeInfo() (nodeInfo *NodeInfo, err error) + func (c *Client) GetUserList() (UserList []UserInfo, err error) + func (c *Client) ReportUserTraffic(userTraffic []UserTraffic) error + type NodeInfo struct + BaseConfig *BaseConfig + Cipher string + Host string + Network string + NetworkSettings json.RawMessage + NodeId int + NodeType string + Routes []Route + Rules []*regexp.Regexp + ServerKey string + ServerName string + ServerPort int + Tls int + type OnlineUser struct + IP string + UID int + type Route struct + Action string + Id int + Match interface{} + type UserInfo struct + Id int + SpeedLimit int + Traffic int64 + Uuid string + type UserListBody struct + Users []UserInfo + type UserTraffic struct + Download int64 + UID int + Upload int64