Documentation
¶
Index ¶
Constants ¶
View Source
const ( None = 0 Tls = 1 Reality = 2 )
Security type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseConfig ¶
type Client ¶
type Client struct {
APIHost string
Token string
NodeId int
UserList *UserListBody
AliveMap *AliveMap
// contains filtered or unexported fields
}
func (*Client) GetNodeInfo ¶
func (*Client) GetUserAlive ¶
GetUserAlive will fetch the alive_ip count for users
func (*Client) GetUserList ¶
GetUserList will pull user from v2board
func (*Client) ReportNodeOnlineUsers ¶
func (*Client) ReportUserTraffic ¶
func (c *Client) ReportUserTraffic(userTraffic []UserTraffic) error
ReportUserTraffic reports the user traffic
type CommonNode ¶
type CommonNode struct {
Protocol string `json:"protocol"`
ListenIP string `json:"listen_ip"`
ServerPort int `json:"server_port"`
Routes []Route `json:"routes"`
BaseConfig *BaseConfig `json:"base_config"`
//vless vmess trojan
Tls int `json:"tls"`
TlsSettings TlsSettings `json:"tls_settings"`
CertInfo *CertInfo
Network string `json:"network"`
NetworkSettings json.RawMessage `json:"network_settings"`
Encryption string `json:"encryption"`
EncryptionSettings EncSettings `json:"encryption_settings"`
ServerName string `json:"server_name"`
Flow string `json:"flow"`
//shadowsocks
Cipher string `json:"cipher"`
ServerKey string `json:"server_key"`
//tuic
CongestionControl string `json:"congestion_control"`
ZeroRTTHandshake bool `json:"zero_rtt_handshake"`
//anytls
PaddingScheme []string `json:"padding_scheme,omitempty"`
//hysteria hysteria2
UpMbps int `json:"up_mbps"`
DownMbps int `json:"down_mbps"`
Obfs string `json:"obfs"`
ObfsPassword string `json:"obfs-password"`
Ignore_Client_Bandwidth bool `json:"ignore_client_bandwidth"`
}
type EncSettings ¶
type OnlineUser ¶
type TlsSettings ¶
type TlsSettings struct {
ServerName string `json:"server_name"`
Dest string `json:"dest"`
ServerPort string `json:"server_port"`
ShortId string `json:"short_id"`
PrivateKey string `json:"private_key"`
Mldsa65Seed string `json:"mldsa65Seed"`
Xver uint64 `json:"xver,string"`
CertMode string `json:"cert_mode"`
CertFile string `json:"cert_file"`
KeyFile string `json:"key_file"`
Provider string `json:"provider"`
DNSEnv string `json:"dns_env"`
RejectUnknownSni string `json:"reject_unknown_sni"`
}
type UserListBody ¶
type UserListBody struct {
Users []UserInfo `json:"users" msgpack:"users"`
}
type UserTraffic ¶
Click to show internal directories.
Click to hide internal directories.