monitor

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

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 logrus.FieldLogger, 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() logrus.FieldLogger
}

Observer is the receiver of MonitorEvents

Jump to

Keyboard shortcuts

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