Documentation
¶
Index ¶
- Constants
- type LuaTransform
- func (x *LuaTransform) Desc() string
- func (x *LuaTransform) Destroy()
- func (x *LuaTransform) Init(ruleConfig types.Config, configuration types.Configuration) error
- func (x *LuaTransform) New() types.Node
- func (x *LuaTransform) OnMsg(ctx types.RuleContext, msg types.RuleMsg)
- func (x *LuaTransform) Type() string
- type LuaTransformConfiguration
Constants ¶
View Source
const FunctionNameTransform = "Transform"
FunctionNameTransform is the name of the function to be called in the script
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LuaTransform ¶
type LuaTransform struct {
Config LuaTransformConfiguration
// contains filtered or unexported fields
}
LuaTransform is a component that transforms messages based on Lua scripts
func (*LuaTransform) Desc ¶ added in v0.36.0
func (x *LuaTransform) Desc() string
Desc returns the component description
func (*LuaTransform) Destroy ¶
func (x *LuaTransform) Destroy()
Destroy releases the resources of the component
func (*LuaTransform) Init ¶
func (x *LuaTransform) Init(ruleConfig types.Config, configuration types.Configuration) error
Init initializes the component
func (*LuaTransform) New ¶
func (x *LuaTransform) New() types.Node
New creates a new instance of LuaFilter
func (*LuaTransform) OnMsg ¶
func (x *LuaTransform) OnMsg(ctx types.RuleContext, msg types.RuleMsg)
OnMsg handles the message
func (*LuaTransform) Type ¶
func (x *LuaTransform) Type() string
Type returns the type of the component
type LuaTransformConfiguration ¶
type LuaTransformConfiguration struct {
Script string `` /* 183-byte string literal not displayed */
}
LuaTransformConfiguration node configuration
Click to show internal directories.
Click to hide internal directories.