Versions in this module Expand all Collapse all v0 v0.0.1 Aug 27, 2022 Changes in this version + type Client struct + APIHost string + DeviceLimit int + EnableVless bool + EnableXTLS bool + Key string + LocalRuleList []DetectRule + NodeID int + NodeInfoRspMd5 [16]byte + NodeRuleRspMd5 [16]byte + NodeType string + RemoteRuleCache *[]Rule + SpeedLimit float64 + func (c *Client) Debug() + func (c *Client) Describe() ClientInfo + func (c *Client) GetNodeInfo() (nodeInfo *NodeInfo, err error) + func (c *Client) GetNodeRule() ([]DetectRule, []string, error) + func (c *Client) GetUserList() (UserList []UserInfo, err error) + func (c *Client) ParseSSNodeResponse() (*NodeInfo, error) + func (c *Client) ParseTrojanNodeResponse(body []byte) (*NodeInfo, error) + func (c *Client) ParseV2rayNodeResponse(body []byte, notParseNode, parseRule bool) (*NodeInfo, error) + func (c *Client) ReportUserTraffic(userTraffic []UserTraffic) error + type ClientInfo struct + APIHost string + Key string + NodeID int + NodeType string + type DetectResult struct + RuleID int + UID int + type DetectRule struct + ID int + Pattern *regexp.Regexp + type NodeInfo struct + DeviceLimit int + EnableTls bool + EnableVless bool + NodeId int + NodeType string + SS *SSConfig + SpeedLimit uint64 + TLSType string + Trojan *TrojanConfig + V2ray *V2rayConfig + type OnlineUser struct + IP string + UID int + type Panel interface + Debug func() + Describe func() ClientInfo + GetNodeInfo func() (nodeInfo *NodeInfo, err error) + GetNodeRule func() (ruleList []DetectRule, protocolList []string, err error) + GetUserList func() (userList []UserInfo, err error) + ReportUserTraffic func(userTraffic []UserTraffic) (err error) + func New(apiConfig *conf.ApiConfig) Panel + type Rule struct + Domain []string + InboundTag string + OutboundTag string + Protocol []string + Type string + type SSConfig struct + CypherMethod string + Port int + TransportProtocol string + type TrojanConfig struct + LocalPort int + Password []interface{} + Ssl struct{ ... } + TransportProtocol string + type TrojanUserInfo struct + Password string + type UserInfo struct + Cipher string + Port int + Secret string + TrojanUser *TrojanUserInfo + UID int + V2rayUser *V2RayUserInfo + func (p *UserInfo) GetUserEmail() string + type UserListBody struct + Data []UserInfo + type UserTraffic struct + Download int64 + UID int + Upload int64 + type V2RayUserInfo struct + AlterId int + Email string + Uuid string + type V2rayConfig struct + Inbounds []conf.InboundDetourConfig + Routing ...