Versions in this module Expand all Collapse all v0 v0.3.3 Apr 6, 2026 Changes in this version + const None + const Reality + const Tls + type AliveMap struct + Alive map[int]int + type BaseConfig struct + DeviceOnlineMinTraffic int + NodeReportMinTraffic int + PullInterval any + PushInterval any + type CertInfo struct + CertDomain string + CertFile string + CertMode string + DNSEnv map[string]string + Email string + KeyFile string + Provider string + RejectUnknownSni bool + type Client struct + APIHost string + AliveMap *AliveMap + NodeId int + Token string + UserList *UserListBody + func New(c *conf.NodeConfig) (*Client, error) + func (c *Client) GetNodeInfo() (node *NodeInfo, err error) + func (c *Client) GetUserAlive() (map[int]int, error) + func (c *Client) GetUserList() ([]UserInfo, error) + func (c *Client) ReportNodeOnlineUsers(data *map[int][]string) error + func (c *Client) ReportUserTraffic(userTraffic []UserTraffic) error + type CommonNode struct + BaseConfig *BaseConfig + CertInfo *CertInfo + Cipher string + CongestionControl string + DownMbps int + Encryption string + EncryptionSettings EncSettings + Flow string + Ignore_Client_Bandwidth bool + ListenIP string + Network string + NetworkSettings json.RawMessage + Obfs string + ObfsPassword string + PaddingScheme []string + Protocol string + Routes []Route + ServerKey string + ServerName string + ServerPort int + Tls int + TlsSettings TlsSettings + UpMbps int + ZeroRTTHandshake bool + type EncSettings struct + Mode string + PrivateKey string + ServerPadding string + Ticket string + type NodeInfo struct + Common *CommonNode + Id int + PullInterval time.Duration + PushInterval time.Duration + Security int + Tag string + Type string + type OnlineUser struct + IP string + UID int + type Route struct + Action string + ActionValue *string + Id int + Match []string + type TlsSettings struct + CertFile string + CertMode string + DNSEnv string + Dest string + KeyFile string + Mldsa65Seed string + PrivateKey string + Provider string + RejectUnknownSni string + ServerName string + ServerPort string + ShortId string + Xver uint64 + type UserInfo struct + DeviceLimit int + Id int + SpeedLimit int + Uuid string + type UserListBody struct + Users []UserInfo + type UserTraffic struct + Download int64 + UID int + Upload int64