identifier

package
v0.1.1-0...-03eb687 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	NewIdentifier() (string, error)
}

type FactoryKSUID

type FactoryKSUID struct{}

FactoryKSUID is the Factory implementation using segmentio's KSUID.

func NewFactoryKSUID

func NewFactoryKSUID() FactoryKSUID

func (FactoryKSUID) NewIdentifier

func (f FactoryKSUID) NewIdentifier() (string, error)

type FactoryUUID

type FactoryUUID struct{}

FactoryUUID is the Factory implementation using UUID v7.

func NewFactoryUUID

func NewFactoryUUID() FactoryUUID

func (FactoryUUID) NewIdentifier

func (f FactoryUUID) NewIdentifier() (string, error)

Jump to

Keyboard shortcuts

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