Versions in this module Expand all Collapse all v1 v1.1.1 Feb 22, 2024 Changes in this version + const None + const Reality + const Tls + type BaseConfig struct + PullInterval any + PushInterval any + type Client struct + APIHost string + LastReportOnline map[int]int + NodeId int + NodeType string + Token string + func New(c *conf.ApiConfig) (*Client, error) + func (c *Client) Debug() + func (c *Client) GetNodeInfo() (node *NodeInfo, err error) + func (c *Client) GetUserList() (UserList []UserInfo, err error) + func (c *Client) ReportNodeOnlineUsers(data *map[int][]string, reportOnline *map[int]int) error + func (c *Client) ReportUserTraffic(userTraffic []UserTraffic) error + type CommonNode struct + BaseConfig *BaseConfig + Host string + Routes []Route + ServerName string + ServerPort int + type Hysteria2Node struct + DownMbps int + ObfsPassword string + ObfsType string + UpMbps int + type HysteriaNode struct + DownMbps int + Obfs string + UpMbps int + type NodeInfo struct + Common *CommonNode + Hysteria *HysteriaNode + Hysteria2 *Hysteria2Node + Id int + PullInterval time.Duration + PushInterval time.Duration + RawDNS RawDNS + Rules Rules + Security int + Shadowsocks *ShadowsocksNode + Trojan *TrojanNode + Type string + VAllss *VAllssNode + type OnlineUser struct + IP string + UID int + type RawDNS struct + DNSJson []byte + DNSMap map[string]map[string]interface{} + type RealityConfig struct + MaxClientVer string + MaxTimeDiff string + MinClientVer string + Xver uint64 + type Route struct + Action string + ActionValue string + Id int + Match interface{} + type Rules struct + Protocol []string + Regexp []string + type ShadowsocksNode struct + Cipher string + ServerKey string + type TlsSettings struct + Dest string + PrivateKey string + ServerName string + ServerPort string + ShortId string + Xver uint8 + type TrojanNode struct + Network string + NetworkSettings json.RawMessage + type UserInfo struct + AliveIp int + DeviceLimit int + Id int + SpeedLimit int + Uuid string + type UserListBody struct + Users []UserInfo + type UserTraffic struct + Download int64 + UID int + Upload int64 + type VAllssNode struct + Flow string + Network string + NetworkSettings json.RawMessage + NetworkSettingsBack json.RawMessage + RealityConfig RealityConfig + ServerName string + Tls int + TlsSettings TlsSettings + TlsSettingsBack *TlsSettings