netx

package
v1.49.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInterfaceIpv4Addr

func GetInterfaceIpv4Addr(interfaceName string) (string, error)

func GetNextListener

func GetNextListener(opts ...getNextListenerOption) (net.Listener, error)

GetNextListener - Gets the next available free port starting from a predefined minimum port Up to a pre-defined maximum port

func MaxPort

func MaxPort(maxPort int) getNextListenerOption

func MinPort

func MinPort(minPort int) getNextListenerOption

func TakePort

func TakePort(n int) ([]int, error)

TakePort is just a wrapper around freeport.TakePort() that changes the stderr output to pterm.Debug

Types

This section is empty.

Jump to

Keyboard shortcuts

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