Documentation ¶
Index ¶
Constants ¶
View Source
const ( DnsSourceTypeLocal = iota DnsSourceTypeHttp DnsSourceTypeGoogle )
View Source
const ( DnsRecordTypeA = 1 DnsRecordTypeAAAA = 28 DnsRecordTypeCNAME = 5 )
Variables ¶
This section is empty.
Functions ¶
func DoDns ¶
func DoDns(dnsOptions *DnsOptions, args []string) (err error)
func DoPing ¶
func DoPing(pingOptions *PingOptions, args []string) (err error)
Types ¶
type DnsOptions ¶
type PingOptions ¶
type PingResult ¶
type PingResult struct { Suc bool `json:"suc"` ErrMsg string `json:"errMsg"` Ip string `json:"ip"` AvgCost int `json:"avgCost"` MaxCost int `json:"maxCost"` MinCost int `json:"minCost"` Lost int `json:"lost"` PingCount int `json:"pingCount"` PacketSize int `json:"packetSize"` ReceivePacketCount int `json:"receivePacketCount"` SendPacketCount int `json:"sendPacketCount"` SuccessCount int `json:"successCount"` DebugLog string `json:"debugLog"` }
Click to show internal directories.
Click to hide internal directories.