Documentation ¶
Index ¶
Constants ¶
View Source
const ( HyTrafficStats = "http://127.0.0.1:7654/traffic" //默认流量统计 API HyTrafficStatsClear = "http://127.0.0.1:7654/traffic?clear=1" //默认流量统计 API )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApiClient ¶
type ApiClient struct { Client *resty.Client ETags map[string]string Panel api.Panel UserList map[string]string // contains filtered or unexported fields }
func (*ApiClient) Authenticate ¶
func (*ApiClient) GetUserList ¶
func (*ApiClient) ReportNodeStatus ¶
func (*ApiClient) ReportUserTraffic ¶
type NodeInfoResponse ¶
type NodeStatus ¶
type NodeStatus struct { ID uint32 `json:"id"` NodeStatusItem }
type NodeStatusItem ¶
type UserResponse ¶
type UserTrafficRequest ¶
type UserTrafficRequest struct { ID uint32 `json:"id"` UserTraffic []api.UserTraffic `json:"user_traffic"` }
Click to show internal directories.
Click to hide internal directories.