ping

package
v0.0.0-...-f63a04a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoAnswer = errors.New("no answer")

ErrNoAnswer ...

Functions

This section is empty.

Types

type Pinger

type Pinger struct {
	// contains filtered or unexported fields
}

Pinger ...

func NewPinger

func NewPinger(id int) (*Pinger, error)

NewPinger ...

func (*Pinger) Close

func (p *Pinger) Close() error

Close ...

func (*Pinger) Ping

func (p *Pinger) Ping(ip net.IP, seq int) (time.Duration, error)

Ping ...

type Results

type Results struct {
	Data []time.Duration
}

Results ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL