ping

package
v2.0.11 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option = optionutil.I[Options]

func WithAddr

func WithAddr(addr string) Option

func WithCount

func WithCount(count int) Option

func WithInterval

func WithInterval(interval time.Duration) Option

func WithPrivileged

func WithPrivileged(privileged bool) Option

func WithTimeout

func WithTimeout(timeout time.Duration) Option

type Options

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

type Packet

type Packet = ping.Packet

type Statistics

type Statistics = ping.Statistics

func Ping

func Ping(options ...Option) (*Statistics, error)

Jump to

Keyboard shortcuts

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