generate

package
v0.87.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 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 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

func (c *Config) Build(logger *zap.SugaredLogger) (operator.Operator, error)

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 (g *Input) Start(_ operator.Persister) error

Start will start generating log entries.

func (*Input) Stop added in v0.53.0

func (g *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