uuidutil

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateUUIDv7

func ValidateUUIDv7(label, value string) error

Types

type Generator

type Generator interface {
	NewID(ctx context.Context) (string, error)
}

Generator creates identifier strings for domain aggregates.

type UUIDv7Generator

type UUIDv7Generator struct{}

UUIDv7Generator creates canonical UUIDv7 identifier strings.

func (UUIDv7Generator) NewID

func (UUIDv7Generator) NewID(ctx context.Context) (string, error)

NewID creates one UUIDv7 after checking whether the caller context was canceled before generation began.

Jump to

Keyboard shortcuts

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