Documentation
¶
Index ¶
Constants ¶
View Source
const Disconnected = 3
Disconnected - int signal for the message channel
View Source
const Master = 1
Master - int signal for the election channel
View Source
const Slave = 2
Slave - int signal for the election channel
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ZKURL []string ZKElectionNodeURI string ZKSlaveNodesURI string ReconnectionTimeout int SessionTimeout int }
Config - configures the election
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager - handles the zookeeper election
func (*Manager) GetClusterInfo ¶
GetClusterInfo - return cluster info
func (*Manager) GetHostname ¶
GetHostname - retrieves this node hostname from the OS
Click to show internal directories.
Click to hide internal directories.