Documentation
¶
Index ¶
- Variables
- func GetEventSource(obj *compiler.ObjT) parser.ParseEventT
- func NewRuntime(cb runtimeCb) *runtimeT
- type LogData
- type RuleMatchersT
- type RuntimeT
- func (r *RuntimeT) AddRules(rules *parser.RulesT) error
- func (r *RuntimeT) Close() error
- func (r *RuntimeT) CompileRules(ruleData []byte, report *ux.ReportT) (*RuleMatchersT, error)
- func (r *RuntimeT) CompileRulesPath(rulesPaths []utils.RulePathT, report *ux.ReportT) (*RuleMatchersT, error)
- func (r *RuntimeT) LoadRulesPaths(rep *ux.ReportT, rulesPaths []utils.RulePathT) (*RuleMatchersT, error)
- func (r *RuntimeT) Run(ctx context.Context, ruleMatchers *RuleMatchersT, sources []*LogData, ...) error
- type TrkRdr
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRuleNotFound = errors.New("rule not found") ErrUnknownObjectType = errors.New("unknown object type") ErrExpectedMatcherCb = errors.New("expected matcher callback") ErrDuplicateRule = errors.New("duplicate rule") ErrNoRules = errors.New("no rules provided") ErrMissingCreId = errors.New("missing cre id") )
Functions ¶
func GetEventSource ¶
func GetEventSource(obj *compiler.ObjT) parser.ParseEventT
func NewRuntime ¶
func NewRuntime(cb runtimeCb) *runtimeT
Types ¶
type RuleMatchersT ¶
type RuleMatchersT struct {
// contains filtered or unexported fields
}
func (*RuleMatchersT) DataSourceTemplate ¶ added in v0.1.4
func (r *RuleMatchersT) DataSourceTemplate(currRulesVer *semver.Version) ([]byte, error)
type RuntimeT ¶
type RuntimeT struct {
Stop int64
Ux ux.UxFactoryI
Rules map[string]parser.ParseCreT
// contains filtered or unexported fields
}
func (*RuntimeT) CompileRules ¶
Permit wasm compile rules from a byte slice
func (*RuntimeT) CompileRulesPath ¶
func (*RuntimeT) LoadRulesPaths ¶
Click to show internal directories.
Click to hide internal directories.