Versions in this module Expand all Collapse all v0 v0.5.0 Jan 14, 2018 Changes in this version + func ClearRef() + type CollInfo struct + Count int + Encoder *Encoder + ShortNames bool + Version []int + func (ci *CollInfo) CreateGenerator(content map[string]config.GeneratorJSON) (*ObjectGenerator, error) + func (ci *CollInfo) NewAggregatorFromMap(content map[string]config.GeneratorJSON) ([]Aggregator, error) + func (ci *CollInfo) PreGenerate(k string, v *config.GeneratorJSON, nb int) ([][]byte, byte, error) type EmptyGenerator + func (g *EmptyGenerator) SetEncoder(e *Encoder) type FromArrayGenerator + DoNotTruncate bool type Generator + SetEncoder func(e *Encoder) v0.4.2 Nov 29, 2017 Changes in this version + const BoundAggregator + const CountAggregator + const ValueAggregator + func Float64Bytes(v float64) []byte + func Int32Bytes(v int32) []byte + func Int64Bytes(v int64) []byte + func UInt32Bytes(v uint32) []byte + func UInt64Bytes(v uint64) []byte + type Aggregator struct + Collection string + Database string + Field string + K string + Mode int + Query bson.M + func NewAggregatorFromMap(content map[string]config.GeneratorJSON, shortNames bool) ([]Aggregator, error) + type ArrayGenerator struct + Generator Generator + Size int + func (g *ArrayGenerator) Value() + type AutoIncrementGenerator32 struct + Counter int32 + func (g *AutoIncrementGenerator32) Value() + type AutoIncrementGenerator64 struct + Counter int64 + func (g *AutoIncrementGenerator64) Value() + type BinaryDataGenerator struct + MaxLength uint32 + MinLength uint32 + func (g *BinaryDataGenerator) Value() + type BoolGenerator struct + func (g *BoolGenerator) Value() + type ConstGenerator struct + Val []byte + func (g *ConstGenerator) Value() + type DateGenerator struct + Delta uint64 + StartDate uint64 + func (g *DateGenerator) Value() + type Decimal128Generator struct + func (g *Decimal128Generator) Value() + type EmbeddedObjectGenerator ObjectGenerator + func (g *EmbeddedObjectGenerator) Value() + type EmptyGenerator struct + K []byte + NullPercentage uint32 + Out *Encoder + T byte + func (g *EmptyGenerator) Exists() bool + func (g *EmptyGenerator) Key() []byte + func (g *EmptyGenerator) Type() byte + type Encoder struct + Data []byte + PCG32 *pcg.PCG32 + PCG64 *pcg.PCG64 + func NewEncoder(size int) *Encoder + func (e *Encoder) Reserve() + func (e *Encoder) Truncate(n int) + func (e *Encoder) Write(b []byte) + func (e *Encoder) WriteAt(startPos int, b []byte) + func (e *Encoder) WriteSingleByte(b byte) + type FakerGenerator struct + F func(f *faker.Faker) string + Faker *faker.Faker + func (g *FakerGenerator) Value() + type Float64Generator struct + Mean float64 + StdDev float64 + func (g *Float64Generator) Value() + type FromArrayGenerator struct + Array [][]byte + Index int32 + Size int32 + func (g *FromArrayGenerator) Value() + type Generator interface + Exists func() bool + Key func() []byte + Type func() byte + Value func() + type Int32Generator struct + Max int32 + Min int32 + func (g *Int32Generator) Value() + type Int64Generator struct + Max int64 + Min int64 + func (g *Int64Generator) Value() + type ObjectGenerator struct + Generators []Generator + func CreateGenerator(content map[string]config.GeneratorJSON, shortNames bool, docCount int32, ...) (*ObjectGenerator, error) + func (g *ObjectGenerator) Value() + type ObjectIDGenerator struct + Increment uint32 + func (g *ObjectIDGenerator) Value() + type PositionGenerator struct + func (g *PositionGenerator) Value() + type StringGenerator struct + MaxLength uint32 + MinLength uint32 + func (g *StringGenerator) Value() + type UniqueGenerator struct + CurrentIndex int32 + Values [][]byte