Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = config{ LeaseTime: 1000 * time.Millisecond, MaxRecordLength: 2, IdGenerator: NewUUIDGenerator(), Serializer: serializer.NewJSONSerializer(), LogLevel: zapcore.InfoLevel, }
Functions ¶
This section is empty.
Types ¶
type IdGenerator ¶
type IdGenerator interface {
GenerateId() string
}
type IncrementalGenerator ¶
type IncrementalGenerator struct {
// contains filtered or unexported fields
}
func NewIncrementalGenerator ¶
func NewIncrementalGenerator() *IncrementalGenerator
func (*IncrementalGenerator) GenerateId ¶
func (i *IncrementalGenerator) GenerateId() string
type UUIDGenerator ¶
type UUIDGenerator struct { }
func NewUUIDGenerator ¶
func NewUUIDGenerator() *UUIDGenerator
func (*UUIDGenerator) GenerateId ¶
func (u *UUIDGenerator) GenerateId() string
Click to show internal directories.
Click to hide internal directories.