fake_uid_pool

package
v0.0.0-...-68efac8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2014 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 FakeUIDPool

type FakeUIDPool struct {
	InitialPoolSize int

	AcquireError error
	RemoveError  error

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

func New

func New(start uint32) *FakeUIDPool

func (*FakeUIDPool) Acquire

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

func (*FakeUIDPool) InitialSize

func (p *FakeUIDPool) InitialSize() int

func (*FakeUIDPool) Release

func (p *FakeUIDPool) Release(uid uint32)

func (*FakeUIDPool) Remove

func (p *FakeUIDPool) Remove(uid uint32) error

Jump to

Keyboard shortcuts

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