hop

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2019 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HopStatistic

type HopStatistic struct {
	Dest           *net.IPAddr
	Timeout        time.Duration
	PID            int
	Sent           int
	TTL            int
	Target         string
	Last           icmp.ICMPReturn
	Best           icmp.ICMPReturn
	Worst          icmp.ICMPReturn
	SumElapsed     time.Duration
	Lost           int
	Packets        *ring.Ring
	RingBufferSize int
	// contains filtered or unexported fields
}

func (*HopStatistic) Avg

func (h *HopStatistic) Avg() float64

func (*HopStatistic) Loss

func (h *HopStatistic) Loss() float64

func (*HopStatistic) MarshalJSON

func (h *HopStatistic) MarshalJSON() ([]byte, error)

func (*HopStatistic) Next

func (s *HopStatistic) Next(srcAddr string)

func (*HopStatistic) Render

func (h *HopStatistic) Render(ptrLookup bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL