Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Election ¶
type Election struct {
// contains filtered or unexported fields
}
func NewElection ¶
func NewElection(conf *config.Config, state raft.State, db *database.Database, dbType database.DBType, log *nlog.Log) *Election
NewElection creates the new election tuple.
type ElectionType ¶
type ElectionType int
const ( ElectionRaft ElectionType = 1 << iota ElectionEtcd ElectionUnknown )
Click to show internal directories.
Click to hide internal directories.