filter

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v1.8.0

func New[Ctx any](getevent func(Ctx) gjson.Result, filters ...Func) func(ctx Ctx) bool

New return a rule filter the message.

Types

type Field

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

func NewField added in v1.8.0

func NewField(str string) *Field

NewField ...

func (*Field) All added in v1.8.0

func (f *Field) All(filter ...Func) Func

All ...

func (*Field) Any added in v1.8.0

func (f *Field) Any(filter ...Func) Func

Any ...

type Func added in v1.8.0

type Func func(gjson.Result) bool

func And

func And(filters ...Func) Func

And ...

func Contain

func Contain(str string) Func

Contain ...

func Equal

func Equal(str string) Func

Equal ...

func In

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

In ...

func Not

func Not(filter Func) Func

Not ...

func NotEqual

func NotEqual(str string) Func

NotEqual ...

func Or

func Or(filters ...Func) Func

Or ...

func Regex

func Regex(str string) Func

Regex ...

Jump to

Keyboard shortcuts

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