monitor

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

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

Jump to

Keyboard shortcuts

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