Documentation
¶
Index ¶
- Variables
- type CommandNode
- type CommandNodeConfiguration
- type DataNode
- type DefaultUserNode
- func (n *DefaultUserNode) Destroy()
- func (n *DefaultUserNode) Init(_ ruleTypes.Config, configuration ruleTypes.Configuration) error
- func (n *DefaultUserNode) New() ruleTypes.Node
- func (n *DefaultUserNode) OnMsg(ctx ruleTypes.RuleContext, msg ruleTypes.RuleMsg)
- func (n *DefaultUserNode) Type() string
- type DefaultUserNodeConfiguration
- type FunctionsNode
- type FunctionsNodeConfiguration
- type FunctionsRegistry
- func (x *FunctionsRegistry) Get(functionName string) (func(ctx types.RuleContext, msg types.RuleMsg), bool)
- func (x *FunctionsRegistry) Names() []string
- func (x *FunctionsRegistry) Register(functionName string, f func(ctx types.RuleContext, msg types.RuleMsg))
- func (x *FunctionsRegistry) UnRegister(functionName string)
Constants ¶
This section is empty.
Variables ¶
View Source
var Functions = &FunctionsRegistry{}
Functions ¶
This section is empty.
Types ¶
type CommandNode ¶
type CommandNode struct {
Config CommandNodeConfiguration
}
func (*CommandNode) Destroy ¶
func (n *CommandNode) Destroy()
func (*CommandNode) Init ¶
func (n *CommandNode) Init(_ ruleTypes.Config, configuration ruleTypes.Configuration) error
func (*CommandNode) New ¶
func (n *CommandNode) New() ruleTypes.Node
func (*CommandNode) OnMsg ¶
func (n *CommandNode) OnMsg(ctx ruleTypes.RuleContext, msg ruleTypes.RuleMsg)
func (*CommandNode) Type ¶
func (n *CommandNode) Type() string
type CommandNodeConfiguration ¶
type CommandNodeConfiguration struct {
Command string `json:"command" yaml:"command"`
}
type DataNode ¶
type DataNode struct {
// contains filtered or unexported fields
}
type DefaultUserNode ¶
type DefaultUserNode struct {
Config DefaultUserNodeConfiguration
}
func (*DefaultUserNode) Destroy ¶
func (n *DefaultUserNode) Destroy()
func (*DefaultUserNode) Init ¶
func (n *DefaultUserNode) Init(_ ruleTypes.Config, configuration ruleTypes.Configuration) error
func (*DefaultUserNode) New ¶
func (n *DefaultUserNode) New() ruleTypes.Node
func (*DefaultUserNode) OnMsg ¶
func (n *DefaultUserNode) OnMsg(ctx ruleTypes.RuleContext, msg ruleTypes.RuleMsg)
func (*DefaultUserNode) Type ¶
func (n *DefaultUserNode) Type() string
type DefaultUserNodeConfiguration ¶
type DefaultUserNodeConfiguration struct {
Uid string `json:"uid" yaml:"uid"`
}
type FunctionsNode ¶
type FunctionsNode struct { Config FunctionsNodeConfiguration HasVars bool }
func (*FunctionsNode) Destroy ¶
func (x *FunctionsNode) Destroy()
func (*FunctionsNode) Init ¶
func (x *FunctionsNode) Init(_ types.Config, configuration types.Configuration) error
func (*FunctionsNode) New ¶
func (x *FunctionsNode) New() types.Node
func (*FunctionsNode) OnMsg ¶
func (x *FunctionsNode) OnMsg(ctx types.RuleContext, msg types.RuleMsg)
func (*FunctionsNode) Type ¶
func (x *FunctionsNode) Type() string
type FunctionsRegistry ¶
func (*FunctionsRegistry) Get ¶
func (x *FunctionsRegistry) Get(functionName string) (func(ctx types.RuleContext, msg types.RuleMsg), bool)
func (*FunctionsRegistry) Names ¶
func (x *FunctionsRegistry) Names() []string
func (*FunctionsRegistry) Register ¶
func (x *FunctionsRegistry) Register(functionName string, f func(ctx types.RuleContext, msg types.RuleMsg))
func (*FunctionsRegistry) UnRegister ¶
func (x *FunctionsRegistry) UnRegister(functionName string)
Click to show internal directories.
Click to hide internal directories.