stanza

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

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

Input is an operator that receives internal stanza logs.

func (*Input) Start

func (i *Input) Start() error

Start will start reading incoming stanza logs.

func (*Input) Stop

func (i *Input) Stop() error

Stop will stop reading logs.

type InputConfig

type InputConfig struct {
	helper.InputConfig `yaml:",inline"`
	BufferSize         int `json:"buffer_size" yaml:"buffer_size"`
}

InputConfig is the configuration of a stanza input operator.

func NewInputConfig

func NewInputConfig(operatorID string) *InputConfig

NewInputConfig creates a new stanza input config with default values

func (*InputConfig) Build

func (c *InputConfig) Build(context operator.BuildContext) ([]operator.Operator, error)

Build will build a stanza input operator.

Jump to

Keyboard shortcuts

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