ping

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Timeout = 5 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	PeerIP  string
	Latency time.Duration // -1 on failure
}

Result holds the outcome of a single ping.

func Ping

func Ping(ip string) Result

Ping sends a single TSMP ping to the given IP and returns the result. It is safe to call from a tea.Cmd goroutine.

Jump to

Keyboard shortcuts

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