package
0.13.28
Repository: https://github.com/wenjunzhang/cilium.git
Documentation: pkg.go.dev

# Functions

NewAllocator creates a new Allocator.
WithMax sets the maximum identifier to be allocated.
WithMin sets the minimum identifier to be allocated.
WithSuffix sets the suffix of the allocator to the specified value.

# Constants

NoID is a special ID that represents "no ID available".

# Structs

Allocator is a distributed ID allocator backed by a KVstore.
AllocatorEvent is an event sent over AllocatorEventChan.

# Interfaces

AllocatorKey is the interface to implement in order for a type to be used as key for the allocator.

# Type aliases

AllocatorOption is the base type for allocator options.
ID is the identified type which is being allocated.
IDMap provides mapping from ID to an AllocatorKey.
RangeFunc is the function called by RangeCache.