forward

package
v1.6.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ForwardOutput

type ForwardOutput struct {
	helper.OutputOperator
	// contains filtered or unexported fields
}

ForwardOutput is an operator that sends entries to another stanza instance

func (*ForwardOutput) Process

func (f *ForwardOutput) Process(ctx context.Context, entry *entry.Entry) error

Process adds an entry to the outputs buffer

func (*ForwardOutput) Start

func (f *ForwardOutput) Start() error

Start signals to the ForwardOutput to begin flushing

func (*ForwardOutput) Stop

func (f *ForwardOutput) Stop() error

Stop tells the ForwardOutput to stop gracefully

type ForwardOutputConfig

type ForwardOutputConfig struct {
	helper.OutputConfig `yaml:",inline"`
	BufferConfig        buffer.Config  `json:"buffer"  yaml:"buffer"`
	FlusherConfig       flusher.Config `json:"flusher" yaml:"flusher"`
	Address             string         `json:"address" yaml:"address"`
}

ForwardOutputConfig is the configuration of a forward output operator.

func NewForwardOutputConfig

func NewForwardOutputConfig(operatorID string) *ForwardOutputConfig

NewForwardOutputConfig creates a new forward output config with default values

func (ForwardOutputConfig) Build

Build will build an forward output operator.

Jump to

Keyboard shortcuts

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