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