replicator

package
v0.0.2-alpha2 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2017 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailsafeCheck added in v0.0.2

func FailsafeCheck(state *structs.State, config *structs.Config) (passing bool)

FailsafeCheck implements the failsafe mode circuit breaker that will trip automatically if enough critical failures are detected. Once tripped, the circuit breaker must be reset by a human operator.

func SetFailsafeMode added in v0.0.2

func SetFailsafeMode(state *structs.State, config *structs.Config, enabled bool) (err error)

SetFailsafeMode is used to toggle the distributed failsafe mode lock.

Types

type LeaderCandidate added in v0.0.2

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

LeaderCandidate runs the leader election.

type Runner

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

Runner is the main runner struct.

func NewRunner

func NewRunner(config *structs.Config) (*Runner, error)

NewRunner sets up the Runner type.

func (*Runner) Start

func (r *Runner) Start()

Start creates a new runner and uses a ticker to block until the doneChan is closed at which point the ticker is stopped.

func (*Runner) Stop

func (r *Runner) Stop()

Stop halts the execution of this runner.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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