Documentation ¶
Index ¶
- Constants
- Variables
- func CheckLocationByWeb(ip string) (string, error)
- func ParseEtCheckType(src string) int
- func SendEtCheckAuthReq() string
- func SendEtCheckPingReq(sig chan string)
- func SendEtCheckUsersReq() (string, error)
- func SendEtCheckVersionReq() (reply string, err error)
- type Bind
- type Check
- type DNS
- type Location
- type TCP
Constants ¶
View Source
const ( EtCheckUNKNOWN = iota EtCheckAUTH EtCheckPING EtCheckVERSION EtCheckUSERS )
Et-CHECK请求的类型
View Source
const ( EtCheckUnknownTEXT = "UNKNOWN" EtCheckAuthTEXT = "AUTH" EtCheckPingTEXT = "PING" EtCheckVersionTEXT = "VERSION" EtCheckUsersTEXT = "USERS" )
ET-CHECK请求类型的文本
Variables ¶
View Source
var ETCheckTypeTexts map[int]string
ETCheckTypeTexts ET-CHECK类型的文本
View Source
var ETCheckTypes map[string]int
ETCheckTypes ET-CHECK的类型
Functions ¶
func CheckLocationByWeb ¶
CheckLocationByWeb 外部解析IP的Location
func SendEtCheckPingReq ¶
func SendEtCheckPingReq(sig chan string)
SendEtCheckPingReq 发射ET-CHECK-PING请求
func SendEtCheckUsersReq ¶
SendEtCheckUsersReq 发射 ET-CHECK-USERS 请求
func SendEtCheckVersionReq ¶
SendEtCheckVersionReq 发射 ET-CHECK-VERSION 请求
Types ¶
type Check ¶
type Check struct {
// contains filtered or unexported fields
}
Check Check子协议 必须使用NewCheck进行初始化
type DNS ¶
type DNS struct { DNSType comm.CMDType DNSResolver func(string) (string, error) `label:"DNS解析器"` // contains filtered or unexported fields }
DNS ET-DNS子协议的实现
type Location ¶
type Location struct {
// contains filtered or unexported fields
}
Location ET-LOCATION子协议的实现
Click to show internal directories.
Click to hide internal directories.