rule

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomRuleHandler

type CustomRuleHandler struct {
	// contains filtered or unexported fields
}

func NewRuleHandler

func NewRuleHandler(reqClient api.RequestClient, confManager config.ConfManager, pubSub *gochannel.GoChannel, errChan chan error) *CustomRuleHandler

func (*CustomRuleHandler) Run

func (c *CustomRuleHandler) Run(ctx context.Context)

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

Engine represents the rule engine that processes messages against rules.

func (*Engine) ActiveTopics

func (e *Engine) ActiveTopics() mapset.Set[string]

ActiveTopics returns all the active topics in the rule engine.

func (*Engine) ConsumeNext

func (e *Engine) ConsumeNext(item rule_engine.RuleItem)

ConsumeNext shows how to process a message through the rule engine.

func (*Engine) UpdateRules

func (e *Engine) UpdateRules(apiRules []*resources.DiagnosisRule, configTopics []string)

UpdateRules updates the rules in the rule engine.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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