generate

package
v0.13.19 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: Apache-2.0 Imports: 7 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() 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