leader

package
v0.0.0-...-1570df8 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Leader

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

func New

func New(zkClient *zookeeper.ZookeeperClient) *Leader

func (*Leader) LeaderStart

func (l *Leader) LeaderStart()

LeaderStart runs when leader is elected

func (*Leader) LeaderStop

func (l *Leader) LeaderStop()

LeaderStop runs when leader is stopped

func (*Leader) Run

func (l *Leader) Run() error

func (*Leader) Stop

func (l *Leader) Stop()

Stop gracefully shuts down the node

Jump to

Keyboard shortcuts

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