ports

package
v0.21.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ReservationSize = 1000
	MinPort         = 0
	MaxPort         = 65535
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Lease

type Lease struct {
	// contains filtered or unexported fields
}

func ReserveWeakly

func ReserveWeakly(begin int) (*Lease, error)

func ReserveWeaklyWithRetry

func ReserveWeaklyWithRetry(begin int) (lease *Lease, err error)

func (*Lease) Base

func (r *Lease) Base() int

func (*Lease) Release

func (r *Lease) Release() (err error)

Jump to

Keyboard shortcuts

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