election

package
v0.0.0-...-22c38b1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Election

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

func New

func New(config *config.BalancerConfig, election string) (*Election, error)

func (*Election) IsLeader

func (e *Election) IsLeader() bool

func (*Election) Resign

func (e *Election) Resign() error

func (*Election) Run

func (e *Election) Run(electedCh chan bool)

Jump to

Keyboard shortcuts

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