idgeneration

package
v0.73.14 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDGenerator added in v0.55.0

type IDGenerator struct {
	// contains filtered or unexported fields
}

IDGenerator no mutex required, markets work deterministically, and sequentially.

func New

func New(rootID string) *IDGenerator

New returns an idGenerator, and is used to abstract this type.

func (*IDGenerator) NextID added in v0.55.0

func (i *IDGenerator) NextID() string

Jump to

Keyboard shortcuts

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