ping

package
v0.0.0-...-78b33c2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemeTCP = "tcp"
	SchemeUDP = "udp"
)

Variables

This section is empty.

Functions

func Ping

func Ping(opts *PingOptions) error

Types

type PingOptions

type PingOptions struct {
	// Raw URL that will be parsed
	RawURL string

	// Override the parsed URL scheme with this value
	Scheme string

	// Duration after which the connectivity check will fail
	Timeout time.Duration

	// Enable to allow IPv6 IP addresses to be used in connectivity check
	AllowIPv6 bool
}

Jump to

Keyboard shortcuts

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