Versions in this module Expand all Collapse all v0 v0.1.2 Mar 1, 2022 v0.1.1 Feb 25, 2022 Changes in this version + type DestinationUnreachableErr struct + Duration time.Duration + Peer net.Addr + func (e DestinationUnreachableErr) Error() string + type PingResult struct + Duration time.Duration + type Pinger struct + Logf func(string, ...interface{}) + func New() *Pinger + func (p *Pinger) Ping(ctx context.Context, dst *net.IPAddr, ttl int) (*PingResult, error) + func (p *Pinger) Run(ctx context.Context) error + type Proto int + var ProtoICMPv4 Proto = 1 + var ProtoICMPv6 Proto = 58 + type TimeExceededErr struct + Duration time.Duration + Peer net.Addr + func (e TimeExceededErr) Error() string