Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Election ¶
type Election interface { // Initialize initializes election, such as master change watch Initialize() // Elect elects master, include retry elect when elect fail Elect() // Close closes master elect Close() // IsMaster returns current node if is master IsMaster() bool // GetMaster returns the current master info GetMaster() *models.Master }
Election represents master elect
Click to show internal directories.
Click to hide internal directories.