Documentation
¶
Index ¶
Constants ¶
View Source
const ( UserNotModified = "users not modified" NodeNotModified = "node not modified" RuleNotModified = "rules not modified" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface {
GetNodeInfo() (nodeInfo *NodeInfo, err error)
GetRelayNodeInfo() (nodeInfo *RelayNodeInfo, err error)
GetUserList() (userList *[]UserInfo, err error)
ReportNodeOnlineIPs(onlineIP *[]OnlineIP) (err error)
ReportUserTraffic(userTraffic *[]UserTraffic) (err error)
Describe() ClientInfo
GetNodeRule() (ruleList *[]DetectRule, err error)
Debug()
}
type ClientInfo ¶
type Config ¶
type Config struct {
APIHost string `mapstructure:"ApiHost"`
NodeID int `mapstructure:"NodeID"`
Key string `mapstructure:"ApiKey"`
Timeout int `mapstructure:"Timeout"`
RuleListPath string `mapstructure:"RuleListPath"`
}
Config API config
type DetectResult ¶
type DetectRule ¶
type NodeInfo ¶
type NodeInfo struct {
NodeType string
NodeID int
Port uint32
SpeedLimit uint64
Transport string
Host string
Path string
TLSType string
CypherMethod string
Sniffing bool
RejectUnknownSNI bool
Fingerprint string
Quic_security string
Quic_key string
Address string
ListenIP string
ProxyProtocol bool
CertMode string
CertDomain string
ServerKey string
ServiceName string
Authority string
Header json.RawMessage
SendIP string
Flow string
Seed string
Congestion bool
Dest string
Show bool
ServerNames []string
PrivateKey string
ShortIds []string
MinClientVer string
MaxClientVer string
MaxTimeDiff uint64
Xver uint64
Relay bool
RelayNodeID int
ScMaxEachPostBytes int32
ScMaxConcurrentPosts int32
ScMinPostsIntervalMs int32
NoSSEHeader bool
}
type RelayNodeInfo ¶
type RelayNodeInfo struct {
NodeType string
NodeID int
Port uint32
Transport string
Host string
Path string
TLSType string
CypherMethod string
Quic_security string
Quic_key string
Address string
ListenIP string
ProxyProtocol bool
SendIP string
ServerKey string
ServiceName string
Authority string
Header json.RawMessage
Flow string
Seed string
Congestion bool
Fingerprint string
PublicKey string
ShortId string
SpiderX string
Show bool
ServerName string
ScMaxEachPostBytes int32
ScMaxConcurrentPosts int32
ScMinPostsIntervalMs int32
NoSSEHeader bool
}
Click to show internal directories.
Click to hide internal directories.