telematics

package
v0.0.0-...-4b2efa1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGenerator

func NewGenerator(cfg engine.GeneratorConfig) engine.IGenerator

Types

type Config

type Config struct {
	DisorderRatio   int             `mapstructure:"generator-disorder-ratio"`
	BatchSize       int             `mapstructure:"generator-batch-size"`
	EmptyValueRatio int             `mapstructure:"generator-empty-value-ratio"`
	Randomness      RandomnessLevel `mapstructure:"generator-randomness"`
	WriteBatchSize  int             `mapstructure:"generator-write-batch-size"`
	NumGoRoutine    int             `mapstructure:"generator-num-goroutine"`
	AddComment      bool            `mapstructure:"generator-add-comment"`
	// contains filtered or unexported fields
}

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func (*Generator) Close

func (g *Generator) Close() error

func (*Generator) CreatePluginConfig

func (g *Generator) CreatePluginConfig() interface{}

func (*Generator) GetDefaultFlags

func (g *Generator) GetDefaultFlags() (*pflag.FlagSet, interface{})

func (*Generator) GetPrediction

func (g *Generator) GetPrediction(table *metadata.Table) (engine.GeneratorPrediction, error)

func (*Generator) IsNil

func (g *Generator) IsNil() bool

func (*Generator) ModifyMetadataConfig

func (g *Generator) ModifyMetadataConfig(metaConfig *metadata.Config)

func (*Generator) Run

func (g *Generator) Run(cfg engine.GlobalConfig, meta *metadata.Metadata, writeFunc engine.WriteFunc) error

type RandomnessLevel

type RandomnessLevel = string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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