noop

package
v0.12.5 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoopOperator

type NoopOperator struct {
	helper.TransformerOperator
}

NoopOperator is an operator that performs no operations on an entry.

func (*NoopOperator) Process

func (p *NoopOperator) Process(ctx context.Context, entry *entry.Entry) error

Process will forward the entry to the next output without any alterations.

type NoopOperatorConfig

type NoopOperatorConfig struct {
	helper.TransformerConfig `yaml:",inline"`
}

NoopOperatorConfig is the configuration of a noop operator.

func NewNoopOperatorConfig

func NewNoopOperatorConfig(operatorID string) *NoopOperatorConfig

NewNoopOperatorConfig creates a new noop operator config with default values

func (NoopOperatorConfig) Build

Build will build a noop operator.

Jump to

Keyboard shortcuts

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