Versions in this module Expand all Collapse all v1 v1.0.8 Jan 30, 2026 v1.0.7 Dec 26, 2025 v1.0.6 Dec 22, 2025 v1.0.5 Nov 14, 2025 v1.0.4 Nov 5, 2025 v1.0.3 Nov 1, 2025 v1.0.2 Oct 27, 2025 v1.0.1 Oct 27, 2025 v1.0.0 Oct 27, 2025 Changes in this version + type AliveMap struct + Alive map[int]int + type ClientV1 struct + APIHost string + AliveMap *AliveMap + Client *resty.Client + NodeId int + NodeType string + SecretKey string + UserList *UserListBody + func NewClientV1(c *conf.NodeApiConfig) (*ClientV1, error) + func (c *ClientV1) GetUserAlive() (map[int]int, error) + func (c *ClientV1) GetUserList() ([]UserInfo, error) + func (c *ClientV1) ReportNodeOnlineUsers(data *[]OnlineUser) error + func (c *ClientV1) ReportNodeStatus(nodeStatus *NodeStatus) (err error) + func (c *ClientV1) ReportUserTraffic(userTraffic *[]UserTraffic) error + type ClientV2 struct + APIHost string + Client *resty.Client + SecretKey string + ServerConfigEtag string + ServerId int + func NewClientV2(c *conf.ServerApiConfig) *ClientV2 + type DNSItem struct + Address string + Domains []string + Proto string + type Data struct + Block *[]string + DNS *[]DNSItem + IPStrategy string + Outbound *[]Outbound + Protocols *[]Protocol + PullInterval int + PushInterval int + Total int + TrafficReportThreshold int + type NodeInfo struct + Id int + Protocol *Protocol + PullInterval int + PushInterval int + TrafficReportThreshold int + Type string + type NodeStatus struct + CPU float64 + Disk float64 + Mem float64 + Uptime uint64 + type OnlineUser struct + IP string + UID int + type Outbound struct + Address string + Name string + Password string + Port int + Protocol string + Rules []string + type Protocol struct + AllowInsecure bool + CertDNSEnv string + CertDNSProvider string + CertMode string + Cipher string + CongestionController string + DisableSNI bool + DownMbps int + Enable bool + Encryption string + EncryptionClientPadding string + EncryptionMode string + EncryptionPassword string + EncryptionPrivateKey string + EncryptionRTT string + EncryptionServerPadding string + EncryptionTicket string + Fingerprint string + Flow string + HopInterval int + HopPorts string + Host string + Multiplex string + Obfs string + ObfsHost string + ObfsPassword string + ObfsPath string + PaddingScheme string + Path string + Port int + Ratio int + RealityPrivateKey string + RealityPublicKey string + RealityServerAddr string + RealityServerPort int + RealityShortID string + ReduceRTT bool + SNI string + Security string + ServerKey string + ServiceName string + Transport string + Type string + UDPRelayMode string + UpMbps int + XHTTPExtra string + XHTTPMode string + type ServerConfigResponse struct + Code int + Data *Data + Msg string + func GetServerConfig(c *ClientV2) (*ServerConfigResponse, error) + type ServerPushStatusRequest struct + Cpu float64 + Disk float64 + Mem float64 + UpdatedAt int64 + type ServerPushUserTrafficRequest struct + Traffic []UserTraffic + type UserInfo struct + DeviceLimit int + Id int + SpeedLimit int + Uuid string + type UserListBody struct + Users []UserInfo + type UserOnlineBody struct + Users []OnlineUser + type UserTraffic struct + Download int64 + UID int + Upload int64