uuidv6

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultUuidV6Generator

type DefaultUuidV6Generator struct{}

DefaultUuidV6Generator is the default [UuidGenerator] implementation.

func NewDefaultUuidV6Generator

func NewDefaultUuidV6Generator() *DefaultUuidV6Generator

NewDefaultUuidV6Generator returns a [DefaultUuidGenerator], implementing [UuidGenerator].

func (*DefaultUuidV6Generator) Generate

func (g *DefaultUuidV6Generator) Generate() (googleuuid.UUID, error)

Generate returns a new UUID V6, using Google UUID.

type DefaultUuidV6GeneratorFactory

type DefaultUuidV6GeneratorFactory struct{}

DefaultUuidV6GeneratorFactory is the default UuidV6GeneratorFactory implementation.

func (*DefaultUuidV6GeneratorFactory) Create

Create returns a new UuidV6Generator.

type UuidV6Generator

type UuidV6Generator interface {
	Generate() (googleuuid.UUID, error)
}

UuidV6Generator is the interface for UUID v6 generators.

type UuidV6GeneratorFactory

type UuidV6GeneratorFactory interface {
	Create() UuidV6Generator
}

UuidV6GeneratorFactory is the interface for UuidV6Generator factories.

func NewDefaultUuidV6GeneratorFactory

func NewDefaultUuidV6GeneratorFactory() UuidV6GeneratorFactory

NewDefaultUuidV6GeneratorFactory returns a DefaultUuidV6GeneratorFactory, implementing UuidV6GeneratorFactory.

Jump to

Keyboard shortcuts

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