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
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
Click to show internal directories.
Click to hide internal directories.