filter

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Field

func Field(str string) *field

Field ...

func Filter

func Filter[Ctx any](getevent func(Ctx) gjson.Result, filters ...FilterFunc) func(ctx Ctx) bool

Filter return a rule filter the message.

Types

type FilterFunc

type FilterFunc func(gjson.Result) bool

func And

func And(filters ...FilterFunc) FilterFunc

And ...

func Contain

func Contain(str string) FilterFunc

Contain ...

func Equal

func Equal(str string) FilterFunc

Equal ...

func In

func In(i ...interface{}) FilterFunc

In ...

func Not

func Not(filter FilterFunc) FilterFunc

Not ...

func NotEqual

func NotEqual(str string) FilterFunc

NotEqual ...

func Or

func Or(filters ...FilterFunc) FilterFunc

Or ...

func Regex

func Regex(str string) FilterFunc

Regex ...

Jump to

Keyboard shortcuts

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