keyvalue

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 7 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 `yaml:",inline"`

	Delimiter string `json:"delimiter" yaml:"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

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