Skip to main content

traceroute

成员函数函数描述/介绍
traceroute.Diagnostic
traceroute.ctx
traceroute.firstTTL
traceroute.hops
traceroute.localIp
traceroute.protocol
traceroute.retry
traceroute.timeout
traceroute.udpPort

函数定义#

Diagnostic#

详细描述#

定义#

Diagnostic(host string, opts ...pingutil.TracerouteConfigOption) (chan *pingutil.TracerouteResponse, error)

参数#

参数名参数类型参数解释
hoststring
opts...pingutil.TracerouteConfigOption

返回值#

返回值(顺序)返回值类型返回值解释
r1chan *pingutil.TracerouteResponse
r2error

ctx#

详细描述#

定义#

ctx(ctx context.Context) TracerouteConfigOption

参数#

参数名参数类型参数解释
ctxcontext.Context

返回值#

返回值(顺序)返回值类型返回值解释
r1TracerouteConfigOption

firstTTL#

详细描述#

定义#

firstTTL(ttl int) TracerouteConfigOption

参数#

参数名参数类型参数解释
ttlint

返回值#

返回值(顺序)返回值类型返回值解释
r1TracerouteConfigOption

hops#

详细描述#

定义#

hops(hops int) TracerouteConfigOption

参数#

参数名参数类型参数解释
hopsint

返回值#

返回值(顺序)返回值类型返回值解释
r1TracerouteConfigOption

localIp#

详细描述#

定义#

localIp(addr string) TracerouteConfigOption

参数#

参数名参数类型参数解释
addrstring

返回值#

返回值(顺序)返回值类型返回值解释
r1TracerouteConfigOption

protocol#

详细描述#

定义#

protocol(protocol string) TracerouteConfigOption

参数#

参数名参数类型参数解释
protocolstring

返回值#

返回值(顺序)返回值类型返回值解释
r1TracerouteConfigOption

retry#

详细描述#

定义#

retry(times int) TracerouteConfigOption

参数#

参数名参数类型参数解释
timesint

返回值#

返回值(顺序)返回值类型返回值解释
r1TracerouteConfigOption

timeout#

详细描述#

定义#

timeout(timeout float64) pingutil.TracerouteConfigOption

参数#

参数名参数类型参数解释
timeoutfloat64

返回值#

返回值(顺序)返回值类型返回值解释
r1pingutil.TracerouteConfigOption

udpPort#

详细描述#

定义#

udpPort(port int) TracerouteConfigOption

参数#

参数名参数类型参数解释
portint

返回值#

返回值(顺序)返回值类型返回值解释
r1TracerouteConfigOption