Documentation ¶
Index ¶
- Constants
- func DoCurl(args []string) (err error)
- func DoDns(dnsOptions *DnsOptions, args []string) (err error)
- func DoPing(pingOptions *PingOptions, args []string) (err error)
- func DoTraceRoute(traceRouteOptions *TraceRouteOptions, args []string) (err error)
- func ParseIP(s string) (net.IP, int)
- type CurlResult
- type DnsOptions
- type DnsResult
- type PingOptions
- type PingResult
- type TraceRouteOptions
- type TraceRouteResult
- type TraceRouteResultNode
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)
func DoTraceRoute ¶
func DoTraceRoute(traceRouteOptions *TraceRouteOptions, args []string) (err error)
Types ¶
type CurlResult ¶
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"` }
type TraceRouteOptions ¶
type TraceRouteResult ¶
type TraceRouteResult struct { IP string `json:"ip"` Details []TraceRouteResultNode `json:"details"` Suc bool `json:"suc"` ErrMsg string `json:"errMsg"` }
type TraceRouteResultNode ¶
Click to show internal directories.
Click to hide internal directories.