Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PortAllocator ¶
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.
Click to show internal directories.
Click to hide internal directories.