Help us shape the future of Go! Take the 2026 Go Developer Survey

allocator

package
v1.20.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 15

Documentation

Overview

Package allocator provides a kvstore based ID allocator

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKVStoreBackend

func NewKVStoreBackend(logger *slog.Logger, c KVStoreBackendConfiguration) (allocator.Backend, error)

NewKVStoreBackend creates a pkg/allocator.Backend compatible instance. The specific kvstore used is configured in pkg/kvstore.

Types

type KVStoreBackendConfiguration added in v1.17.0

type KVStoreBackendConfiguration struct {
	BasePath string
	Suffix   string
	Typ      allocator.AllocatorKey
	Backend  kvstore.BackendOperations
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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