Documentation ¶
Index ¶
Constants ¶
View Source
const ( HeartBeatPeriodInSeconds = 5 HeartBeatTimeoutInSeconds = HeartBeatPeriodInSeconds * 3 HeartBeatPeriod = time.Second * HeartBeatPeriodInSeconds )
View Source
const ( PromoteMaster = 0 DescendMaster = 1 )
View Source
const ( STATUS_LOOKASIDE int = iota STATUS_COMPETE_MASTER STATUS_MASTER STATUS_FOLLOW STATUS_SESSION_CLOSE )
View Source
const (
QUORUM_COLLECTION string = "election"
)
Variables ¶
View Source
var MasterPromotionNotifier chan bool
become or lost master status notifier
Functions ¶
func AlwaysMaster ¶
func AlwaysMaster()
func BecomeMaster ¶
func UseElectionObjectId ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.