Documentation ¶ Index ¶ type Pinger func NewPinger(addr string, mtu int, timeout time.Duration) *Pinger func (p *Pinger) Close() error func (p *Pinger) OnRecv(cb func(*icmp.Message, time.Time) error) func (p *Pinger) Send(peer *net.UDPAddr, payload []byte) (uint64, time.Time, error) func (p *Pinger) Start(ctx context.Context) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Pinger ¶ type Pinger struct { MTU int // contains filtered or unexported fields } func NewPinger ¶ func NewPinger(addr string, mtu int, timeout time.Duration) *Pinger func (*Pinger) Close ¶ func (p *Pinger) Close() error func (*Pinger) OnRecv ¶ func (p *Pinger) OnRecv(cb func(*icmp.Message, time.Time) error) func (*Pinger) Send ¶ func (p *Pinger) Send(peer *net.UDPAddr, payload []byte) (uint64, time.Time, error) func (*Pinger) Start ¶ func (p *Pinger) Start(ctx context.Context) error Source Files ¶ View all Source files pinger.go Click to show internal directories. Click to hide internal directories.