Back to godoc.org

Package seed

v0.0.0-...-9649366
Latest Go to latest

The highest tagged major version is .

Published: Nov 21, 2019 | License: Apache-2.0 | Module: github.com/chronosphereiox/m3

Index

type Generator

type Generator interface {
	Generate(nsCtx namespace.Context, shard uint32) error
}

Generator generates data

func NewGenerator

func NewGenerator(opts Options) Generator

NewGenerator returns a new generator

type Options

type Options interface {

	// SetInstrumentOptions sets the instrument Options
	SetInstrumentOptions(instrument.Options) Options

	// InstrumentOptions returns the instrument Options
	InstrumentOptions() instrument.Options

	// SetGenerateOptions sets the generation.Options
	SetGenerateOptions(generate.Options) Options

	// GenerateOptions returns the generation.Options
	GenerateOptions() generate.Options

	// SetRandSource sets the Source used during generation
	SetRandSource(rand.Source) Options

	// RandSource returns the Source used during generation
	RandSource() rand.Source

	// SetNumIDs sets the number of ids generated per block
	SetNumIDs(int) Options

	// NumIDs returns the number of ids generated per block
	NumIDs() int

	// SetMinNumPointsPerID sets the min number of points
	// generated per ID per block
	SetMinNumPointsPerID(int) Options

	// MinNumPointsPerID returns the min number of points
	// generated per ID per block
	MinNumPointsPerID() int

	// SetMaxNumPointsPerID sets the max number of points
	// generated per ID per block
	SetMaxNumPointsPerID(int) Options

	// MaxNumPointsPerID returns the max number of points
	// generated per ID per block
	MaxNumPointsPerID() int

	// SetIDLengthMean sets the mean length used during ID generation
	SetIDLengthMean(float64) Options

	// IDLengthMean returns the mean length used during ID generation
	IDLengthMean() float64

	// SetIDLengthStddev sets the stddev of length used during ID generation
	SetIDLengthStddev(float64) Options

	// IDLengthStddev returns the stddev of length used during ID generation
	IDLengthStddev() float64
}

Options control the knobs to generate data

func NewOptions

func NewOptions() Options

NewOptions returns new options

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier