ports

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAvailablePort

func GetAvailablePort() (int, error)

GetAvailablePort returns a random port that's available

func GetRandomAvailablePort

func GetRandomAvailablePort() (int, error)

GetRandomAvailablePort returns a random port that's available

func IsPortAvailable

func IsPortAvailable(iface string, port int) bool

IsPortAvailable returns true if the port is already taken

func IsTCP4PortAvailable

func IsTCP4PortAvailable(iface string, port int) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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