Documentation ¶
Index ¶
Constants ¶
This section is empty.
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) Destroy ¶
func (x *LuaFilter) Destroy()
Destroy releases the resources of the component
type LuaFilterConfiguration ¶
type LuaFilterConfiguration struct { //Script configures the function body content or the script file path with `.lua` as the suffix //Only need to provide the function body content, if it is a file path, then need to provide the complete script function: //function Filter(msg, metadata, msgType) ${Script} \n end //return bool //The parameter msg, if the data type of msg is JSON, then it will be converted to the Lua table type before calling the function Script string }
LuaFilterConfiguration node configuration
Click to show internal directories.
Click to hide internal directories.