Versions in this module Expand all Collapse all v1 v1.0.2 May 4, 2020 Changes in this version + const ProtocolICMP + const ProtocolIPv6ICMP + type EchoRequest struct + Destination net.IP + ID string + Received time.Time + Sent time.Time + WaitGroup *sync.WaitGroup + func NewEchoRequest(msg icmp.Message, dest net.IP, wg *sync.WaitGroup) *EchoRequest + type EchoResponse struct + Id int + Peer string + Received time.Time + Seq int + func (e *EchoResponse) String() string + type PingStats struct + Latency []time.Duration + Received int + Sent int + type Pinger struct + Counter int + Debug bool + func NewPinger(protocol string, bufferSize int) (*Pinger, error) + func (p *Pinger) Ping(address net.IP, count int, timeout time.Duration) (*PingStats, error) + func (p *Pinger) Send(req *EchoRequest) error + func (p *Pinger) Start() + func (p *Pinger) Stop()