rtt

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PingRTT

func PingRTT(host string, timeout time.Duration) (time.Duration, error)

PingRTT is a convenience function for ICMP ping that doesn't require a port parameter

func TestRTT

func TestRTT(host string, port string, protocol Protocol, timeout time.Duration) (time.Duration, error)

Types

type Protocol

type Protocol string
const (
	TCP  Protocol = "tcp"
	UDP  Protocol = "udp"
	ICMP Protocol = "icmp"
)

Jump to

Keyboard shortcuts

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