ping

package
v0.0.0-...-890cd7e Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Count    uint
	Interval time.Duration
	Outbound option.Outbound
}

Client is the ping client

func (*Client) Ping

func (c *Client) Ping(ctx context.Context, destination string) (*Statistics, error)

Ping pings the destination

type Statistics

type Statistics struct {
	StartAt time.Time
	RTTs    []uint16

	Requests uint
	Fails    uint

	Max     uint
	Min     uint
	Average uint
}

Statistics is the ping statistics

Jump to

Keyboard shortcuts

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