Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MTROutPut ¶
func ExecuteMTR ¶
Execute mtr command and return parsed output
func ExecuteMTRContext ¶
Execute mtr command and return parsed output, killing the process if context becomes done before command completes.
func NewMTROutPut ¶
NewMTROutPut can be used to parse output of mtr --raw <target ip> . raw is the output from mtr command, count is the -c argument, default 10 in mtr
type MtrHop ¶
type MtrHop struct { IP []string Host []string ASN []string Timings []time.Duration //In Json they become nanosecond Avg time.Duration Loss int SD time.Duration Sent int Received int Last time.Duration Best time.Duration Worst time.Duration }
func (*MtrHop) ResolveIPs ¶
func (hop *MtrHop) ResolveIPs()
ResolveIPs populates the DNS hostnames of the IP in each Hop.
Click to show internal directories.
Click to hide internal directories.