keyvalue

package
v0.97.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.59.0

type Config struct {
	helper.ParserConfig `mapstructure:",squash"`

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

Config is the configuration of a key value parser operator.

func NewConfig added in v0.59.0

func NewConfig() *Config

NewConfig creates a new key value parser config with default values

func NewConfigWithID added in v0.59.0

func NewConfigWithID(operatorID string) *Config

NewConfigWithID creates a new key value parser config with default values

func (Config) Build added in v0.59.0

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

Build will build a key value parser operator.

type Parser added in v0.59.0

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

Parser is an operator that parses key value pairs.

func (*Parser) Process added in v0.59.0

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

Process will parse an entry for key value pairs.

Jump to

Keyboard shortcuts

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