seed

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2026 License: Apache-2.0 Imports: 11 Imported by: 5 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL