portregistry

package
v0.0.0-...-3511abf Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPort

func GetPort(portBase int) (int, error)

GetPort returns available port above the given port base.

func InitPortRegistry

func InitPortRegistry(reservedPorts []int)

InitPortRegistry initializes the global port registry tree.

func ReleasePort

func ReleasePort(port int)

ReleasePort releases port and removes it from the port registry tree.

func RestorePort

func RestorePort(port int)

RestorePort restores a port by adding it back to the global port registry tree.

Types

This section is empty.

Jump to

Keyboard shortcuts

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