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 ¶
func (g *DefaultUuidV6GeneratorFactory) Create() UuidV6Generator
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.
Click to show internal directories.
Click to hide internal directories.