port_pool

package
v0.0.0-...-33bca21 Latest Latest
Warning

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

Go to latest
Published: May 7, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PoolExhaustedError

type PoolExhaustedError struct{}

func (PoolExhaustedError) Error

func (e PoolExhaustedError) Error() string

type PortPool

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

func New

func New(start, size uint32) *PortPool

func (*PortPool) Acquire

func (p *PortPool) Acquire() (uint32, error)

func (*PortPool) Release

func (p *PortPool) Release(port uint32)

func (*PortPool) Remove

func (p *PortPool) Remove(port uint32) error

type PortTakenError

type PortTakenError struct {
	Port uint32
}

func (PortTakenError) Error

func (e PortTakenError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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