Versions in this module Expand all Collapse all v0 v0.9.0 Apr 24, 2023 v0.8.4 Sep 21, 2022 v0.8.2 Sep 1, 2022 v0.8.1 Aug 19, 2022 v0.8.0 Jun 9, 2022 Changes in this version + type APIClient struct + APIHost string + DeviceLimit int + DisableCustomConfig bool + EnableVless bool + EnableXTLS bool + 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) ParseSSNodeResponse(nodeInfoResponse *NodeInfoResponse) (*api.NodeInfo, error) + func (c *APIClient) ParseSSPanelNodeInfo(nodeInfoResponse *NodeInfoResponse) (*api.NodeInfo, error) + func (c *APIClient) ParseSSPluginNodeResponse(nodeInfoResponse *NodeInfoResponse) (*api.NodeInfo, error) + func (c *APIClient) ParseTrojanNodeResponse(nodeInfoResponse *NodeInfoResponse) (*api.NodeInfo, error) + func (c *APIClient) ParseUserListResponse(userInfoResponse *[]UserResponse) (*[]api.UserInfo, error) + func (c *APIClient) ParseV2rayNodeResponse(nodeInfoResponse *NodeInfoResponse) (*api.NodeInfo, error) + func (c *APIClient) ReportIllegal(detectResultList *[]api.DetectResult) error + func (c *APIClient) ReportNodeOnlineUsers(onlineUserList *[]api.OnlineUser) error + func (c *APIClient) ReportNodeStatus(nodeStatus *api.NodeStatus) (err error) + func (c *APIClient) ReportUserTraffic(userTraffic *[]api.UserTraffic) error + type CustomConfig struct + AllowInsecure string + AlterID string + EnableVless string + EnableXtls string + Flow string + Grpc string + Header json.RawMessage + Host string + MuEncryption string + MuObfs string + MuPort string + MuProtocol string + MuSuffix string + Network string + Obfs string + OffsetPortNode string + OffsetPortUser string + Path string + Security string + ServerSub string + Servicename string + TLS string + TrojanPort string + V2Port string + VerifyCert bool + type IllegalItem struct + ID int + UID int + type NodeInfoResponse struct + Class int + CustomConfig json.RawMessage + Group int + MuOnly int + RawServerString string + Sort int + SpeedLimit float64 + TrafficRate float64 + Type string + Version string + type OnlineUser struct + IP string + UID int + type PostData struct + Data interface{} + type Response struct + Data json.RawMessage + Ret uint + type RuleItem struct + Content string + ID int + type SystemLoad struct + Load string + Uptime string + type UserResponse struct + AliveIP int + DeviceLimit int + Email string + ForbiddenIP string + ForbiddenPort string + ID int + Method string + MultiUser int + Obfs string + ObfsParam string + Passwd string + Port int + Protocol string + ProtocolParam string + SpeedLimit float64 + UUID string + type UserTraffic struct + Download int64 + UID int + Upload int64