Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Allocator ¶
type Allocator struct {
// contains filtered or unexported fields
}
Allocator is a prefix allocator allocating in chunks of a fixed size regardless of the size requested by the client. It consumes an amount of memory proportional to the total amount of available prefixes
func NewBitmapAllocator ¶
NewBitmapAllocator creates a new allocator, allocating /`size` prefixes carved out of the given `pool` prefix
type IPv4Allocator ¶
type IPv4Allocator struct {
// contains filtered or unexported fields
}
IPv4Allocator allocates IPv4 addresses, tracking utilization with a bitmap
func NewIPv4Allocator ¶
func NewIPv4Allocator(start, end net.IP) (*IPv4Allocator, error)
NewIPv4Allocator creates a new allocator suitable for giving out IPv4 addresses
Click to show internal directories.
Click to hide internal directories.