Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseConfig ¶ added in v1.1.0
type Client ¶
type Client struct { APIHost string Key string NodeType string NodeId int LocalRuleList []*regexp.Regexp // contains filtered or unexported fields }
func (*Client) GetNodeInfo ¶
func (*Client) GetUserList ¶
GetUserList will pull user form sspanel
func (*Client) ReportUserTraffic ¶
func (c *Client) ReportUserTraffic(userTraffic []UserTraffic) error
ReportUserTraffic reports the user traffic
type NodeInfo ¶
type NodeInfo struct { NodeId int `json:"-"` NodeType string `json:"-"` Rules []*regexp.Regexp `json:"-"` Host string `json:"host"` ServerPort int `json:"server_port"` ServerName string `json:"server_name"` Network string `json:"network"` NetworkSettings json.RawMessage `json:"networkSettings"` Cipher string `json:"cipher"` ServerKey string `json:"server_key"` Tls int `json:"tls"` Routes []Route `json:"routes"` BaseConfig *BaseConfig `json:"base_config"` }
type OnlineUser ¶
type UserListBody ¶
type UserListBody struct { //Msg string `json:"msg"` Users []UserInfo `json:"users"` }
type UserTraffic ¶
Click to show internal directories.
Click to hide internal directories.