idmanager

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoIDAvailable = errors.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