portauthority

package
v0.0.0-...-93b67cf Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PortAllocator

type PortAllocator interface {
	ClaimPorts(int) (uint16, error)
}

func New

func New(startingPort, endingPort int) (PortAllocator, error)

New creates a new port allocator startingPort indicates the first port that will be assigned by the ClaimPorts() function. endingPort indicates the maximum port number that this allocator may assign.

returns a non-nil error if the ending port exceeds the IANA maximum of 65535.

Jump to

Keyboard shortcuts

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