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

idmanager

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoIDAvailable = stderrors.New("no new ID available")

Functions

This section is empty.

Types

type Manager

type Manager interface {
	Lock(context.Context) (Unlocker, error)
	Generate(context.Context) (int, error)
}

func New

func New(maxIDValue int, s store.Store, name string, field string, prefix string) Manager

type Unlocker added in v0.8.1

type Unlocker interface {
	Unlock(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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