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.
type RegexParserConfig ¶
type RegexParserConfig 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"` }
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 ¶
func (c RegexParserConfig) Build(logger *zap.SugaredLogger) (operator.Operator, error)
Build will build a regex parser operator.
Click to show internal directories.
Click to hide internal directories.