xnet

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wait

func Wait(ctx context.Context, timeout time.Duration, probes ...string) error

Wait blocks until "the network is probably usable" or ctx/timeout expires. Success = at least one non-loopback, UP iface has a global IP AND at least one probe succeeds. Probes are conservative defaults; you can pass alternatives (e.g., "tcp:192.0.2.1:443", "dns:yourdomain.tld").

Types

This section is empty.

Jump to

Keyboard shortcuts

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