Versions in this module Expand all Collapse all v1 v1.1.3 Jan 1, 2023 Changes in this version + type APIClient struct + APIHost string + DeviceLimit int + Key string + LocalRuleList []api.DetectRule + NodeID int + 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) GetTransitNodeInfo() (transitnodeinfo *api.TransitNodeInfo, err error) + func (c *APIClient) GetUserList() (UserList *[]api.UserInfo, err error) + func (c *APIClient) ParseNodeResponse(nodeInfoResponse *NodeInfoResponse) (*api.NodeInfo, error) + func (c *APIClient) ParseTransitNodeResponse(nodeInfoResponse *TransitNodeInfoResponse) (*api.TransitNodeInfo, 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) ReportNodeStatus(nodeStatus *api.NodeStatus) (err error) + func (c *APIClient) ReportUserTraffic(userTraffic *[]api.UserTraffic) error + type IllegalItem struct + ID int + UID int + type NodeInfoResponse struct + Address string + AllowInsecure bool + Fingerprint string + Headertype string + Host string + ListenIP string + Method string + Path string + Port uint32 + Protocol string + ProxyProtocol bool + Quic_key string + Quic_security string + RejectUnknownSNI bool + RelayNodeID int + Security string + ServiceName string + Sniffing bool + SpeedLimit float64 + Type 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 TransitNodeInfoResponse struct + Address string + AllowInsecure bool + Fingerprint string + Flow string + Headertype string + Host string + ListenIP string + Method string + NodeID int + Path string + Port uint32 + Protocol string + ProxyProtocol bool + Quic_key string + Quic_security string + RejectUnknownSNI bool + Security string + ServiceName string + Sniffing bool + SpeedLimit float64 + Type string + type UserResponse struct + DeviceLimit int + Email string + ID int + IPcount int + LimitType int + Passwd string + SpeedLimit float64 + UUID string + type UserTraffic struct + Download int64 + UID int + Upload int64