Documentation
¶
Index ¶
Constants ¶
Variables ¶
View Source
var Beijing = BackBoneCollection{ Location: "北京", CT163: ISPCollection{ ISPName: CT163, IP: "ipv4.pek-4134.endpoint.nxtrace.org", IPv6: "ipv6.pek-4134.endpoint.nxtrace.org", }, CTCN2: ISPCollection{ ISPName: CTCN2, IP: "ipv4.pek-4809.endpoint.nxtrace.org", }, CU169: ISPCollection{ ISPName: CU169, IP: "ipv4.pek-4837.endpoint.nxtrace.org", IPv6: "ipv6.pek-4837.endpoint.nxtrace.org", }, CU9929: ISPCollection{ ISPName: CU9929, IP: "ipv4.pek-9929.endpoint.nxtrace.org", }, CM: ISPCollection{ ISPName: CM, IP: "ipv4.pek-9808.endpoint.nxtrace.org", IPv6: "ipv6.pek-9808.endpoint.nxtrace.org", }, CMIN2: ISPCollection{ ISPName: CMIN2, IP: "ipv4.pek-58807.endpoint.nxtrace.org", }, EDU: ISPCollection{ ISPName: EDU, IP: "ipv4.pek-4538.endpoint.nxtrace.org", IPv6: "ipv6.pek-4538.endpoint.nxtrace.org", }, CST: ISPCollection{ ISPName: CST, IP: "ipv4.pek-7497.endpoint.nxtrace.org", IPv6: "ipv6.pek-7497.endpoint.nxtrace.org", }, }
View Source
var Guangzhou = BackBoneCollection{ Location: "广州", CT163: ISPCollection{ ISPName: CT163, IP: "ipv4.can-4134.endpoint.nxtrace.org", IPv6: "ipv6.can-4134.endpoint.nxtrace.org", }, CTCN2: ISPCollection{ ISPName: CTCN2, IP: "ipv4.can-4809.endpoint.nxtrace.org", }, CU169: ISPCollection{ ISPName: CU169, IP: "ipv4.can-4837.endpoint.nxtrace.org", IPv6: "ipv6.can-4837.endpoint.nxtrace.org", }, CU9929: ISPCollection{ ISPName: CU9929, IP: "ipv4.can-9929.endpoint.nxtrace.org", }, CM: ISPCollection{ ISPName: CM, IP: "ipv4.can-9808.endpoint.nxtrace.org", IPv6: "ipv6.can-9808.endpoint.nxtrace.org", }, CMIN2: ISPCollection{ ISPName: CMIN2, IP: "ipv4.can-58807.endpoint.nxtrace.org", }, EDU: ISPCollection{ ISPName: EDU, IP: "ipv4.can-4538.endpoint.nxtrace.org", IPv6: "ipv6.can-4538.endpoint.nxtrace.org", }, }
View Source
var Hangzhou = BackBoneCollection{ Location: "杭州", CT163: ISPCollection{ ISPName: CT163, IP: "ipv4.hgh-4134.endpoint.nxtrace.org", IPv6: "ipv6.hgh-4134.endpoint.nxtrace.org", }, CU169: ISPCollection{ ISPName: CU169, IP: "ipv4.hgh-4837.endpoint.nxtrace.org", IPv6: "ipv6.hgh-4837.endpoint.nxtrace.org", }, CM: ISPCollection{ ISPName: CM, IP: "ipv4.hgh-9808.endpoint.nxtrace.org", IPv6: "ipv6.hgh-9808.endpoint.nxtrace.org", }, EDU: ISPCollection{ ISPName: EDU, IP: "ipv4.hgh-4538.endpoint.nxtrace.org", IPv6: "ipv6.hgh-4538.endpoint.nxtrace.org", }, }
View Source
var Hefei = BackBoneCollection{ Location: "合肥", EDU: ISPCollection{ ISPName: EDU, IP: "ipv4.hfe-4538.endpoint.nxtrace.org", IPv6: "ipv6.hfe-4538.endpoint.nxtrace.org", }, CST: ISPCollection{ ISPName: CST, IP: "ipv4.hfe-7497.endpoint.nxtrace.org", }, }
View Source
var Shanghai = BackBoneCollection{ Location: "上海", CT163: ISPCollection{ ISPName: CT163, IP: "ipv4.sha-4134.endpoint.nxtrace.org", IPv6: "ipv6.sha-4134.endpoint.nxtrace.org", }, CTCN2: ISPCollection{ ISPName: CTCN2, IP: "ipv4.sha-4809.endpoint.nxtrace.org", }, CU169: ISPCollection{ ISPName: CU169, IP: "ipv4.sha-4837.endpoint.nxtrace.org", IPv6: "ipv6.sha-4837.endpoint.nxtrace.org", }, CU9929: ISPCollection{ ISPName: CU9929, IP: "ipv4.sha-9929.endpoint.nxtrace.org", IPv6: "ipv6.sha-9929.endpoint.nxtrace.org", }, CM: ISPCollection{ ISPName: CM, IP: "ipv4.sha-9808.endpoint.nxtrace.org", IPv6: "ipv6.sha-9808.endpoint.nxtrace.org", }, CMIN2: ISPCollection{ ISPName: CMIN2, IP: "ipv4.sha-58807.endpoint.nxtrace.org", }, EDU: ISPCollection{ ISPName: EDU, IP: "ipv4.sha-4538.endpoint.nxtrace.org", IPv6: "ipv6.sha-4538.endpoint.nxtrace.org", }, }
View Source
var TestIPsCollection = AllLocationCollection{ Beijing: Beijing, Shanghai: Shanghai, Guangzhou: Guangzhou, Hangzhou: Hangzhou, Hefei: Hefei, }
Functions ¶
func FastTest ¶
func FastTest(traceMode trace.Method, paramsFastTrace ParamsFastTrace)
func FastTestv6 ¶
func FastTestv6(traceMode trace.Method, paramsFastTrace ParamsFastTrace)
Types ¶
type AllLocationCollection ¶
type AllLocationCollection struct {
Beijing BackBoneCollection
Shanghai BackBoneCollection
Guangzhou BackBoneCollection
Hangzhou BackBoneCollection
Hefei BackBoneCollection
Changsha BackBoneCollection
}
type BackBoneCollection ¶
type BackBoneCollection struct {
Location string
CT163 ISPCollection
CTCN2 ISPCollection
CU169 ISPCollection
CU9929 ISPCollection
CM ISPCollection
CMIN2 ISPCollection
EDU ISPCollection
CST ISPCollection
}
type FastTracer ¶
type FastTracer struct {
TracerouteMethod trace.Method
ParamsFastTrace ParamsFastTrace
}
type ISPCollection ¶
type IpListElement ¶
type ParamsFastTrace ¶
type ParamsFastTrace struct {
Context context.Context
OSType int
ICMPMode int
SrcDev string
SrcAddr string
DstPort int
BeginHop int
MaxHops int
MaxAttempts int
RDNS bool
AlwaysWaitRDNS bool
Lang string
PktSize int
PacketSizeSet bool
TOS int
Timeout time.Duration
File string
Dot string
OutputPath string
}
Click to show internal directories.
Click to hide internal directories.