Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ballot ¶
type Ballot struct { Name string `mapstructure:"-"` ID string `mapstructure:"id"` Key string `mapstructure:"key"` ServiceChecks []string `mapstructure:"serviceChecks"` Token string `mapstructure:"consul.token"` ExecOnPromote string `mapstructure:"execOnPromote"` ExecOnDemote string `mapstructure:"execOnDemote"` PrimaryTag string `mapstructure:"primaryTag"` ConsulAddress string `mapstructure:"consul.address"` TTL time.Duration `mapstructure:"ttl"` LockDelay time.Duration `mapstructure:"lockDelay"` // contains filtered or unexported fields }
Ballot is a struct that holds the configuration for the leader election.
type CommandExecutor ¶ added in v0.0.3
type ConsulClient ¶ added in v0.0.3
type ElectionPayload ¶
Click to show internal directories.
Click to hide internal directories.