watcher

package
v0.26.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventWatcher

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

EventWatcher 中文函数注释:事件监听器。

func NewEventWatcher

func NewEventWatcher() *EventWatcher

NewEventWatcher 中文函数注释:创建事件监听器。

func (*EventWatcher) HandleEvent

func (w *EventWatcher) HandleEvent(event *models.K8sEvent) error

HandleEvent 中文函数注释:处理单个事件(供外部调用)。

func (*EventWatcher) Start

func (w *EventWatcher) Start()

Start 中文函数注释:启动事件监听器。

func (*EventWatcher) Stop

func (w *EventWatcher) Stop()

Stop 中文函数注释:无论当前配置开关状态如何,均立即停止监听器上下文。

Jump to

Keyboard shortcuts

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