Versions in this module Expand all Collapse all v0 v0.0.1 Apr 15, 2020 Changes in this version + type Packet struct + IPAddr *net.IPAddr + Nbytes int + RAddr string + Rtt time.Duration + Seq int + type Pinger struct + Count int + Debug bool + Interval time.Duration + OnFinish func(*Statistics) + OnRecv func(*Packet) + PacketsRecv int + PacketsSent int + Timeout time.Duration + func NewPinger(ctx context.Context, addr string) (*Pinger, error) + func (p *Pinger) Addr() string + func (p *Pinger) IPAddr() *net.IPAddr + func (p *Pinger) Privileged() bool + func (p *Pinger) Run() + func (p *Pinger) SetAddr(addr string) error + func (p *Pinger) SetIPAddr(ipaddr *net.IPAddr) + func (p *Pinger) SetPrivileged(privileged bool) + func (p *Pinger) Statistics() *Statistics + func (p *Pinger) Stop() + type Statistics struct + Addr string + AvgRtt time.Duration + IPAddr *net.IPAddr + MaxRtt time.Duration + MinRtt time.Duration + PacketLoss float64 + PacketsRecv int + PacketsSent int + RAddr string + Rtts []time.Duration + StdDevRtt time.Duration