leader

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfLeader

func CheckIfLeader() bool

CheckIfLeader checks if the current process is the leader

func SetChangeLeaderCallback

func SetChangeLeaderCallback(callback func(bool) common.SyncServiceError)

SetChangeLeaderCallback sets the callback to be called when the leadership changes

func SetUnsubcribeCallback

func SetUnsubcribeCallback(callback func() common.SyncServiceError)

SetUnsubcribeCallback sets the callback to be called when there is no connection to the database and the node has to be unsubscribed from all its subscriptions

func StartLeaderDetermination

func StartLeaderDetermination(theStore storage.Storage)

StartLeaderDetermination starts the leader determination process

func StopLeadershipPeriodicUpdate

func StopLeadershipPeriodicUpdate()

StopLeadershipPeriodicUpdate stops the Leadership Periodic Update go routine

Types

This section is empty.

Jump to

Keyboard shortcuts

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