regex

package
v0.13.5 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 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 RegexParser

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

RegexParser is an operator that parses regex in an entry.

func (*RegexParser) Process

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

Process will parse an entry for regex.

type RegexParserConfig

type RegexParserConfig struct {
	helper.ParserConfig `yaml:",inline"`

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

RegexParserConfig is the configuration of a regex parser operator.

func NewRegexParserConfig

func NewRegexParserConfig(operatorID string) *RegexParserConfig

NewRegexParserConfig creates a new regex parser config with default values

func (RegexParserConfig) Build

Build will build a regex parser operator.

Jump to

Keyboard shortcuts

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