Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { GetNodeInfo() (nodeInfo *NodeInfo, err error) GetUserList() (userList []*UserInfo, err error) ReportUserTraffic(userTraffic []*UserTraffic) (err error) Describe() *ClientInfo Debug() }
API is the interface for different panel's api.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client APIClient create a api client to the panel.
func (*Client) Describe ¶
func (c *Client) Describe() *ClientInfo
Describe return a description of the client
func (*Client) GetNodeInfo ¶
GetNodeInfo will pull NodeInfo Config from sspanel
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 ClientInfo ¶
type RepNodeInfo ¶
type RepUserList ¶
type RepUserTraffic ¶
type RepUserTraffic struct {
Message string `json:"message"`
}
Click to show internal directories.
Click to hide internal directories.