regex

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

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

Filter Worker read []byte from input channel, apply regular expresion if []byte match against Pattern , []byte is sent to output

func NewFilter

func NewFilter(opts FilterOptions) *Filter

NewFilter create a new Filter Worker with specified options

func (*Filter) Process

func (r *Filter) Process(ctx context.Context, args selina.ProcessArgs) error

Process implements Worker interface

type FilterOptions

type FilterOptions struct {
	//Pattern valid regular expresion
	Pattern string
}

FilterOptions customize Filter Worker

func (FilterOptions) Check added in v0.8.0

func (o FilterOptions) Check() error

Check if a combination of options is valid

Jump to

Keyboard shortcuts

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