fake_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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakePortPool

type FakePortPool struct {
	AcquireError error
	RemoveError  error

	Acquired []uint32
	Released []uint32
	Removed  []uint32
	// contains filtered or unexported fields
}

func New

func New(start uint32) *FakePortPool

func (*FakePortPool) Acquire

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

func (*FakePortPool) Release

func (p *FakePortPool) Release(port uint32)

func (*FakePortPool) Remove

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

Jump to

Keyboard shortcuts

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