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
Click to show internal directories.
Click to hide internal directories.