monitor

package
v0.0.0-...-c2c6b65 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2015 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClusterUnaviable = errors.New("none of the nodes in the cluster are available")
)
View Source
var (
	Done = errors.New("done")
)

Functions

func NewPerformer

func NewPerformer(me state.State, other state.State, config config.Config) *performer

func NewPrefix

func NewPrefix(prefix string) io.Writer

Types

type Looper

type Looper interface {
	Loop(time.Duration) error
}

func NewDecider

func NewDecider(me, other, monitor state.State, performer Performer) Looper

type Performer

type Performer interface {
	TransitionToActive()
	TransitionToBackup()
	TransitionToSingle()
	Stop()
	Initialize() error
	Start() error
	Loop() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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