keyvalue

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 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 KVParser

type KVParser struct {
	helper.ParserOperator
	// contains filtered or unexported fields
}

KVParser is an operator that parses key value pairs.

func (*KVParser) Process

func (kv *KVParser) Process(ctx context.Context, entry *entry.Entry) error

Process will parse an entry for key value pairs.

type KVParserConfig

type KVParserConfig struct {
	helper.ParserConfig `mapstructure:",squash" yaml:",inline"`

	Delimiter     string `mapstructure:"delimiter" yaml:"delimiter"`
	PairDelimiter string `mapstructure:"pair_delimiter" yaml:"pair_delimiter"`
}

KVParserConfig is the configuration of a key value parser operator.

func NewKVParserConfig

func NewKVParserConfig(operatorID string) *KVParserConfig

NewKVParserConfig creates a new key value parser config with default values

func (KVParserConfig) Build

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

Build will build a key value parser operator.

Jump to

Keyboard shortcuts

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