monitorinstance

package
v0.0.0-...-580aad3 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Implementation

type Implementation interface {

	// Start starts the monitor implementation.
	Start() error

	// Stop Stops the monitor implementation.
	Stop() error

	// SetupConfig provides a configuration to implmentations. Every implmentation
	// can have its own config type.
	SetupConfig(registerer registerer.Registerer, cfg interface{}) error

	// SetupHandlers sets up handlers for monitors to invoke for various events such as
	// processing unit events and synchronization events. This will be called before Start()
	// by the consumer of the monitor
	SetupHandlers(c *processor.Config)

	// ReSync should resynchronize PUs. This should be done while starting up.
	ReSync() error
}

Implementation for a monitor.

Directories

Path Synopsis
Package mockinstance is a generated GoMock package.
Package mockinstance is a generated GoMock package.

Jump to

Keyboard shortcuts

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