generate

package
v0.113.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.53.0

type Config struct {
	helper.InputConfig `mapstructure:",squash"`
	Entry              entry.Entry `mapstructure:"entry"`
	Count              int         `mapstructure:"count"`
	Static             bool        `mapstructure:"static"`
}

Config is the configuration of a generate input operator.

func NewConfig added in v0.53.0

func NewConfig(operatorID string) *Config

NewConfig creates a new generate input config with default values

func (*Config) Build added in v0.53.0

Build will build a generate input operator.

type Input added in v0.53.0

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

Input is an operator that generates log entries.

func (*Input) Start added in v0.53.0

func (i *Input) Start(_ operator.Persister) error

Start will start generating log entries.

func (*Input) Stop added in v0.53.0

func (i *Input) Stop() error

Stop will stop generating logs.

Jump to

Keyboard shortcuts

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