Documentation ¶
Index ¶
- func FindUserDiffer(before, now *[]UserInfo) (remove, add *[]UserInfo, err error)
- type Allocate
- type BaseConfig
- type Cert
- type Inbound
- type Log
- type NodeInfo
- type Panel
- type PanelCommand
- type Proxy
- type ProxyCommand
- type Settings
- type Sniffing
- type StreamSettings
- type Sync
- type SysLoad
- type UserIP
- type UserInfo
- type UserTraffic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindUserDiffer ¶
Types ¶
type BaseConfig ¶
type NodeInfo ¶
type NodeInfo struct { Id uint32 IdIndex uint32 Tag string SpeedLimit uint32 `json:"node_speedlimit"` Sort uint32 `json:"sort"` RawInfo string `json:"server"` Url string Protocol string CipherType string ListenPort uint32 AlterID uint32 EnableSniffing bool EnableTLS bool EnableProxyProtocol bool TransportMode string Path string Host string Cert Cert }
type PanelCommand ¶
type PanelCommand interface { Init(cfg *BaseConfig, idIndex uint32) error GetNodeInfo(closeTLS bool) (err error) GetUser() (userList *[]UserInfo, err error) PostTraffic(trafficData *[]UserTraffic) (err error) PostSysLoad(load *SysLoad) (err error) PostAliveIP(baseCfg *BaseConfig, userIP *[]UserIP) (err error) GetNowInfo() (nodeInfo *NodeInfo) }
type Proxy ¶
type Proxy struct { Type string `json:"type"` AlterID uint32 `json:"alter_id"` AutoGenerate bool `json:"auto_generate"` InTags []string `json:"in_tags"` APIAddress string `json:"api_address"` APIPort uint32 `json:"api_port"` ConfigPath string `json:"config_path"` LogPath string `json:"log_path"` ForceCloseTLS bool `json:"force_close_tls"` EnableSniffing bool `json:"enable_sniffing"` Cert Cert `json:"cert"` SpeedLimitLevel []float32 `json:"speed_limit_level"` }
type ProxyCommand ¶
type StreamSettings ¶
type StreamSettings struct { }
type UserInfo ¶
type UserInfo struct { Id uint32 Uuid string AlterId uint32 // Level will use for speed limit Level uint32 InTag string // Tag = Id + “-” + InTag Tag string // Protocol Vmess, trojan.. Protocol string CipherType string Password string SpeedLimit uint32 MaxClients uint32 // 单端口承载用户标识,true代表该用户为单端口承载用户 SSConfig bool }
type UserTraffic ¶
Click to show internal directories.
Click to hide internal directories.