regex

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Type = "regex"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Pattern    string `yaml:"pattern,omitempty" validate:"required"`
	BodyFields string `yaml:"bodyFields,omitempty" validate:"required"` // use the fields as `Body`
	Prune      *bool  `yaml:"prune,omitempty"`                          // we drop all the fields except `Body` in default
}

func (*Config) Validate

func (c *Config) Validate() error

type Regex

type Regex struct {
	// contains filtered or unexported fields
}

func NewRegex

func NewRegex() *Regex

func (*Regex) Config

func (j *Regex) Config() interface{}

func (*Regex) Decode

func (j *Regex) Decode(e api.Event) (api.Event, error)

func (*Regex) Init

func (j *Regex) Init()

Jump to

Keyboard shortcuts

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