generate

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateInput

type GenerateInput struct {
	helper.InputOperator
	// contains filtered or unexported fields
}

GenerateInput is an operator that generates log entries.

func (*GenerateInput) Start

func (g *GenerateInput) Start(_ operator.Persister) error

Start will start generating log entries.

func (*GenerateInput) Stop

func (g *GenerateInput) Stop() error

Stop will stop generating logs.

type GenerateInputConfig

type GenerateInputConfig struct {
	helper.InputConfig `yaml:",inline"`
	Entry              entry.Entry `json:"entry"           yaml:"entry"`
	Count              int         `json:"count,omitempty" yaml:"count,omitempty"`
	Static             bool        `json:"static"          yaml:"static,omitempty"`
}

GenerateInputConfig is the configuration of a generate input operator.

func NewGenerateInputConfig

func NewGenerateInputConfig(operatorID string) *GenerateInputConfig

NewGenerateInputConfig creates a new generate input config with default values

func (*GenerateInputConfig) Build

Build will build a generate input operator.

Jump to

Keyboard shortcuts

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