worker

package
v0.26.5 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventWorker

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

EventWorker 中文函数注释:事件处理Worker。

func Instance

func Instance() *EventWorker

Instance 中文函数注释:获取全局事件处理Worker实例。

func NewEventWorker

func NewEventWorker() *EventWorker

NewEventWorker 中文函数注释:创建事件处理Worker。

func (*EventWorker) Start

func (w *EventWorker) Start()

Start 中文函数注释:启动Worker。

func (*EventWorker) Stop

func (w *EventWorker) Stop()

Stop 中文函数注释:无论当前配置开关状态如何,均立即停止事件处理循环并等待退出。

func (*EventWorker) UpdateConfig

func (w *EventWorker) UpdateConfig()

UpdateConfig 中文函数注释:动态刷新事件处理配置(从数据库重新加载)。

type RuleMatcher

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

RuleMatcher 中文函数注释:事件规则匹配器。

func NewRuleMatcher

func NewRuleMatcher(clusterRules map[string]config.RuleConfig) *RuleMatcher

NewRuleMatcher 中文函数注释:创建匹配器。

func (*RuleMatcher) Match

func (m *RuleMatcher) Match(event *models.K8sEvent) bool

Match 中文函数注释:判断事件是否命中指定集群规则。

Jump to

Keyboard shortcuts

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