Help us shape the future of Go! Take the 2026 Go Developer Survey

ports

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2018 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

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

Registry keeps track of reserved ports.

func NewRegistry

func NewRegistry(min, max uint16, reserved []uint16) *Registry

func (*Registry) Release

func (r *Registry) Release(port uint16) error

func (*Registry) Reserve

func (r *Registry) Reserve() (uint16, error)

Jump to

Keyboard shortcuts

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