monitor

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package monitor handles config value monitoring and changing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

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

Monitor for configuration changes.

func New

func New(cfg *config.Config, ww ...Watcher) (*Monitor, error)

New constructor.

func (*Monitor) Monitor

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

Monitor configuration changes by starting watchers per source.

type Watcher

type Watcher interface {
	Watch(ctx context.Context, ch chan<- []*change.Change) error
}

Watcher interface definition.

Directories

Path Synopsis
Package consul handles the monitor capabilities of harvester using ConsulLogger.
Package consul handles the monitor capabilities of harvester using ConsulLogger.
Package redis handles the monitor capabilities of harvester using redis.
Package redis handles the monitor capabilities of harvester using redis.

Jump to

Keyboard shortcuts

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