Versions in this module Expand all Collapse all v1 v1.0.3 Sep 22, 2023 Changes in this version + const ProtocolICMP + const ProtocolICMPv6 + var SetLogger = log.SetLogger + type Payload []byte + func (p *Payload) Resize(size uint16) + type Pinger struct + LogUnexpectedPackets bool + func New(bind4, bind6 string) (*Pinger, error) + func (pinger *Pinger) Close() + func (pinger *Pinger) PayloadSize() uint16 + func (pinger *Pinger) Ping(destination *net.IPAddr, timeout time.Duration) (time.Duration, error) + func (pinger *Pinger) PingAttempts(destination *net.IPAddr, timeout time.Duration, attempts int) (rtt time.Duration, err error) + func (pinger *Pinger) PingContext(ctx context.Context, destination *net.IPAddr) (time.Duration, error) + func (pinger *Pinger) PingMulticast(destination *net.IPAddr, wait time.Duration) (<-chan Reply, error) + func (pinger *Pinger) PingMulticastContext(ctx context.Context, destination *net.IPAddr) (<-chan Reply, error) + func (pinger *Pinger) SetPayload(data []byte) + func (pinger *Pinger) SetPayloadSize(size uint16) + type Reply struct + Address net.IP + Duration time.Duration