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 GetLeaderID ¶ added in v1.6.8
func GetLeaderID() string
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 ¶
StartLeaderDetermination starts the leader determination process
func StopLeadershipPeriodicUpdate ¶
func StopLeadershipPeriodicUpdate()
StopLeadershipPeriodicUpdate stops the Leadership Periodic Update go routine
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.