Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldGenerator ¶
type FieldGenerator interface { GetInt() int64 GetText() string GetDescription() string SetParameters([]string) error }
func NewRandom ¶
func NewRandom(min int64, max int64) FieldGenerator
type PartitionKey ¶
func (*PartitionKey) GetText ¶
func (p *PartitionKey) GetText() string
type PartitionKeyGenerator ¶
func Random ¶
func Random(prefix string) *PartitionKeyGenerator
func Sequence ¶
func Sequence(prefix string) *PartitionKeyGenerator
func (*PartitionKeyGenerator) GenerateKey ¶
func (g *PartitionKeyGenerator) GenerateKey(total uint64, maxId uint64) <-chan *PartitionKey
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) GetGenerator ¶
func (r *Registry) GetGenerator(table string, field string) FieldGenerator
func (*Registry) SetDefault ¶
func (r *Registry) SetDefault(field Field, generator FieldGenerator)
Click to show internal directories.
Click to hide internal directories.