network

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckEndpointReachable added in v0.9.0

func CheckEndpointReachable(ctx context.Context, urlStr string, timeout time.Duration) error

CheckEndpointReachable verifies that a URL endpoint is reachable. It extracts the base URL (scheme + host) and performs a simple HTTP HEAD request. Returns nil if reachable, error otherwise.

func GetMachineIP

func GetMachineIP() (string, error)

GetMachineIP retrieves the first non-loopback IP address of the machine

Types

This section is empty.

Jump to

Keyboard shortcuts

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