util

package
v1.1.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoListener added in v1.0.0

func AutoListener(protocol, address string, startPort, endPort uint16) (net.Listener, error)

func AutoListenerAddress added in v1.0.0

func AutoListenerAddress(protocol, address string, startPort, endPort uint16) (string, error)

func BytesToSize

func BytesToSize(sz int64) string

func DumpHeaders

func DumpHeaders(headers http.Header, in bool) string

func EnableSuperNetwork added in v1.0.8

func EnableSuperNetwork(zCfg *ziti.Config)

func FormatHostDetailsWithUser added in v1.0.6

func FormatHostDetailsWithUser(username, hostname, hostDetail, description string) (formattedHostDetail, formattedDescription string)

FormatHostDetailsWithUser combines the username and host details into a single string. It also returns a formatted description string if the input description is the default "<user>@<hostname>".

func GetHostDetails added in v1.0.6

func GetHostDetails() (hostname string, hostDetail string, username string, err error)

GetHostDetails returns the hostname, detailed host information, and username. The detailed host information includes OS, platform, kernel details, and username.

func IsValidEmail

func IsValidEmail(e string) bool

func IsValidUniqueName added in v0.4.19

func IsValidUniqueName(uniqueName string) bool

IsValidUniqueName ensures that the string represents a valid unique name. Lowercase alphanumeric only. 4-32 characters.

func NewRequestsWrapper added in v0.4.36

func NewRequestsWrapper(proxy *httputil.ReverseProxy) *requestsWrapper

Types

This section is empty.

Jump to

Keyboard shortcuts

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