jobs

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WriteMode  = "write"
	ReadMode   = "read"
	MixedMode  = "mixed"
	WarmupMode = "warmup"
)

Variables

This section is empty.

Functions

func GenCheckStmt added in v1.8.3

func GenDDLStmt added in v1.8.3

func GenMutateStmt added in v1.8.3

func NewPump

func NewPump(stopFlag *stop.Flag, logger *zap.Logger) chan time.Duration

Types

type List added in v1.8.3

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

func ListFromMode

func ListFromMode(mode string, duration time.Duration, workers uint64) List

func (List) Run added in v1.8.3

func (l List) Run(
	ctx context.Context,
	schema *typedef.Schema,
	schemaConfig typedef.SchemaConfig,
	s store.Store,
	pump <-chan time.Duration,
	generators []*generators.Generator,
	globalStatus *status.GlobalStatus,
	logger *zap.Logger,
	seed uint64,
	stopFlag *stop.Flag,
	failFast, verbose bool,
) error

Jump to

Keyboard shortcuts

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