Documentation ¶
Index ¶
- func FindUserDiffer(before, now *[]UserInfo) (remove, add *[]UserInfo, err error)
- type Allocate
- type BaseConfig
- type Cert
- type Inbound
- type NodeInfo
- type Panel
- type PanelCmd
- type Proxy
- type ProxyCommand
- type Settings
- type Sniffing
- type StreamSettings
- type Sync
- type UserIP
- type UserInfo
- type UserTraffic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindUserDiffer ¶
Types ¶
type BaseConfig ¶
type NodeInfo ¶ added in v0.3.1
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 ListenPort uint32 AlertID uint32 EnableTLS bool EnableProxyProtocol bool TransportMode string Path string Host string Cert Cert }
type PanelCmd ¶ added in v0.3.1
type PanelCmd interface { GetNodeInfo(cfg *BaseConfig, idIndex uint32) (changed bool, err error) GetUser(cfg *BaseConfig) (userList *[]UserInfo, err error) PostTraffic(cfg *BaseConfig, trafficData *[]UserTraffic) (ret int, err error) AddInbound(apiClient *interface{}) (ret int, err error) }
type ProxyCommand ¶ added in v0.3.1
type ProxyCommand interface { Init(cfg *BaseConfig) error AddUsers(user *[]UserInfo) error RemoveUsers(user *[]UserInfo) error QueryUsersTraffic(user *[]UserInfo) (*[]UserTraffic, error) AddInbound(node *NodeInfo) (err error) //AddTrojanInbound() //AddSSInbound() RemoveInbound(node *NodeInfo) (err error) }
type StreamSettings ¶ added in v0.3.1
type StreamSettings struct { }
type UserTraffic ¶
Click to show internal directories.
Click to hide internal directories.