monitor

package
v1.18.7 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsumer

func NewConsumer(observer Observer) monitorConsumer.MonitorConsumer

NewConsumer returns an initialized pointer to consumer.

func NewMonitorFilter

func NewMonitorFilter(logger *slog.Logger, monitorEventFilters []string) (*monitorFilter, error)

NewMonitorFilter creates a new monitor filter. If monitorEventFilters is empty, no events are allowed.

Types

type Observer

type Observer interface {
	GetEventsChannel() chan *observerTypes.MonitorEvent
	GetLogger() *slog.Logger
}

Observer is the receiver of MonitorEvents

Jump to

Keyboard shortcuts

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