idgeneration

package
v0.0.0-...-141c82c Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT 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

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

func (i *IDGenerator) NextID() string

Jump to

Keyboard shortcuts

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