net

package
v1.9.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IPv4ListenerAddress = "0.0.0.0"
	IPv6ListenerAddress = "::"
)
View Source
const (
	DefaultLocalAddress = "localhost"
)

Variables

This section is empty.

Functions

func BackendHostAndPort added in v1.1.0

func BackendHostAndPort(backendRef gwapiv1.BackendObjectReference, defaultNamespace string) (string, uint32)

func LocalAvailablePort

func LocalAvailablePort() (int, error)

func ParseURL added in v1.9.0

func ParseURL(urlStr string) (scheme, hostAndPort string, err error)

ParseURL return host and port if the URL is a valid HTTP, HTTPS or UDS, return the scheme and host:port if it's valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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