regex

package
v0.57.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 12 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.53.0

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

	Regex string `mapstructure:"regex" json:"regex" yaml:"regex"`

	Cache struct {
		Size uint16 `json:"size" yaml:"size"`
	} `mapstructure:"cache" json:"cache" yaml:"cache"`
}

Config is the configuration of a regex parser operator.

func NewConfig added in v0.53.0

func NewConfig(operatorID string) *Config

NewConfig creates a new regex parser config with default values

func (Config) Build added in v0.53.0

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

Build will build a regex parser operator.

type Parser added in v0.53.0

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

Parser is an operator that parses regex in an entry.

func (*Parser) Process added in v0.53.0

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

Process will parse an entry for regex.

Jump to

Keyboard shortcuts

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