lua

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const FunctionNameFilter = "Filter"

FunctionNameFilter is the name of the function to be called in the script

Variables

This section is empty.

Functions

This section is empty.

Types

type LuaFilter

type LuaFilter struct {
	Config LuaFilterConfiguration
	// contains filtered or unexported fields
}

LuaFilter is a component that filters messages based on Lua scripts.

func (*LuaFilter) Desc added in v0.36.0

func (x *LuaFilter) Desc() string

Desc returns the component description

func (*LuaFilter) Destroy

func (x *LuaFilter) Destroy()

Destroy releases the resources of the component

func (*LuaFilter) Init

func (x *LuaFilter) Init(ruleConfig types.Config, configuration types.Configuration) error

Init initializes the component

func (*LuaFilter) New

func (x *LuaFilter) New() types.Node

New creates a new instance of LuaFilter

func (*LuaFilter) OnMsg

func (x *LuaFilter) OnMsg(ctx types.RuleContext, msg types.RuleMsg)

OnMsg handles the message

func (*LuaFilter) Type

func (x *LuaFilter) Type() string

Type returns the type of the component

type LuaFilterConfiguration

type LuaFilterConfiguration struct {
	Script string `` /* 162-byte string literal not displayed */
}

LuaFilterConfiguration node configuration

Jump to

Keyboard shortcuts

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