pingutil

package
v1.2.9-sp7 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: AGPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PingConfig added in v1.2.5

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

type PingResult

type PingResult struct {
	IP     string
	Ok     bool
	RTT    int64
	Reason string
}

func PingAuto

func PingAuto(ip string, defaultTcpPort string, timeout time.Duration, proxies ...string) *PingResult

func PingAutoConfig added in v1.2.5

func PingAutoConfig(ip string, config *PingConfig) *PingResult

func PingNative

func PingNative(ip string, timeout time.Duration) *PingResult

func PingNativeBase added in v1.2.5

func PingNativeBase(ip string, cxt context.Context, timeout time.Duration) *PingResult

Jump to

Keyboard shortcuts

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