Versions in this module Expand all Collapse all v0 v0.3.19 Jan 2, 2026 v0.3.18 Dec 15, 2025 v0.3.17 Aug 4, 2025 v0.3.16 Jul 22, 2025 v0.3.15 Jun 23, 2025 v0.3.14 Apr 23, 2025 v0.3.13 Feb 25, 2025 v0.3.12 Feb 7, 2025 v0.3.11 Nov 21, 2024 Changes in this version + type APIClient struct + APIHost string + DeviceLimit int + Key string + LastReportOnline map[int]int + 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, error) + func (c *APIClient) GetUserList() (UserList *[]api.UserInfo, err error) + func (c *APIClient) ParseSSPanelNodeInfo(nodeInfoResponse *NodeInfoResponse) (*api.NodeInfo, error) + func (c *APIClient) ParseUserListResponse(userInfoResponse *[]UserResponse) (*[]api.UserInfo, error) + func (c *APIClient) ReportIllegal(detectResultList *[]api.DetectResult) error + func (c *APIClient) ReportNodeOnlineUsers(onlineUserList *[]api.OnlineUser) error + func (c *APIClient) ReportUserTraffic(userTraffic *[]api.UserTraffic) error + type CustomConfig struct + AllowInsecure string + Header json.RawMessage + Host string + Method string + Network string + OffsetPortNode string + Path string + Security string + ServerKey string + ServiceName string + TLS string + VerifyCert bool + type IllegalItem struct + ID int + UID int + type NodeInfoResponse struct + CustomConfig json.RawMessage + RawServerString string + Sort int + SpeedLimit float64 + Type string + Version string + type OnlineUser struct + IP string + UID int + type PostData struct + Data interface{} + type Response struct + Data json.RawMessage + Msg string + Ret uint + type RuleItem struct + Content string + ID int + type UserResponse struct + ID int + Method string + Passwd string + Port uint32 + SpeedLimit float64 + UUID string + type UserTraffic struct + Download int64 + UID int + Upload int64