uuid

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: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultUuidGenerator

type DefaultUuidGenerator struct{}

DefaultUuidGenerator is the default UuidGenerator implementation.

func NewDefaultUuidGenerator

func NewDefaultUuidGenerator() *DefaultUuidGenerator

NewDefaultUuidGenerator returns a DefaultUuidGenerator, implementing UuidGenerator.

func (*DefaultUuidGenerator) Generate

func (g *DefaultUuidGenerator) Generate() string

Generate returns a new UUID, using Google UUID.

type DefaultUuidGeneratorFactory

type DefaultUuidGeneratorFactory struct{}

DefaultUuidGeneratorFactory is the default UuidGeneratorFactory implementation.

func NewDefaultUuidGeneratorFactory

func NewDefaultUuidGeneratorFactory() *DefaultUuidGeneratorFactory

NewDefaultUuidGeneratorFactory returns a DefaultUuidGeneratorFactory, implementing UuidGeneratorFactory.

func (*DefaultUuidGeneratorFactory) Create

Create returns a new UuidGenerator.

type UuidGenerator

type UuidGenerator interface {
	Generate() string
}

UuidGenerator is the interface for UUID generators.

type UuidGeneratorFactory

type UuidGeneratorFactory interface {
	Create() UuidGenerator
}

UuidGeneratorFactory is the interface for UuidGenerator factories.

Jump to

Keyboard shortcuts

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