elector

package
v74.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2017 License: Apache-2.0, BSD-3-Clause, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Elector

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

func NewElector

func NewElector(instanceName string, adapter storeadapter.StoreAdapter, updateInterval time.Duration) *Elector

func (*Elector) IsLeader

func (elector *Elector) IsLeader() bool

func (*Elector) RunForElection

func (elector *Elector) RunForElection() error

func (*Elector) StayAsLeader

func (elector *Elector) StayAsLeader() error

func (*Elector) Vacate

func (elector *Elector) Vacate() error

Jump to

Keyboard shortcuts

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