file

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: 8 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 {
	FilePaths       []string `mapstructure:"generator-file-paths"`
	BatchSize       int      `mapstructure:"generator-batch-size"`
	EmptyValueRatio int      `mapstructure:"generator-empty-value-ratio"`
}

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(_ *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

Jump to

Keyboard shortcuts

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