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 UIDTakenError ¶
type UIDTakenError struct {
UID uint32
}
func (UIDTakenError) Error ¶
func (e UIDTakenError) Error() string
type UnixUIDPool ¶
type UnixUIDPool struct {
// contains filtered or unexported fields
}
func New ¶
func New(start, size uint32) *UnixUIDPool
func (*UnixUIDPool) Acquire ¶
func (p *UnixUIDPool) Acquire() (uint32, error)
func (*UnixUIDPool) InitialSize ¶
func (p *UnixUIDPool) InitialSize() int
func (*UnixUIDPool) Release ¶
func (p *UnixUIDPool) Release(uid uint32)
func (*UnixUIDPool) Remove ¶
func (p *UnixUIDPool) Remove(uid uint32) error
Click to show internal directories.
Click to hide internal directories.