monitor

package
v0.0.0-...-ba90866 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultMonitorQueueSize is the default size of the monitor queue.  Potentially
	// make this configurable in the future.
	DefaultMonitorQueueSize = 1000
	DefaultMonitorWorkers   = 1
	DefaultMonitorInterval  = 5 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

type Monitor struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewMonitor

func NewMonitor(c client.Client, ns string, log logr.Logger) *Monitor

func (*Monitor) Start

func (m *Monitor) Start(ctx context.Context)

func (*Monitor) Stop

func (m *Monitor) Stop()

type Worker

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

func NewWorker

func NewWorker(c client.Client) *Worker

func (*Worker) Start

func (m *Worker) Start(ctx context.Context, ch <-chan types.NamespacedName)

func (*Worker) WithLogger

func (m *Worker) WithLogger(log logr.Logger) *Worker

Jump to

Keyboard shortcuts

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