Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CfgPersistence ¶
type CfgPersistence struct {
Folder string `yaml:"folder"`
}
type Configuration ¶
type Configuration struct { Persistence CfgPersistence `yaml:"persistence"` Members []CfgMember `yaml:"members"` NodeID string `yaml:"node_id"` }
type RaftConclave ¶
type RaftConclave struct {
// contains filtered or unexported fields
}
func NewRaftConclave ¶
func NewRaftConclave(logger *log.Entry, ctx context.Context, wg *sync.WaitGroup, config *Configuration) (raftConclave *RaftConclave, err error)
func (*RaftConclave) IsLeader ¶
func (raftConclave *RaftConclave) IsLeader() (isLeader bool)
func (*RaftConclave) Raft ¶
func (raftConclave *RaftConclave) Raft() (raftRaft *raft.Raft)
func (*RaftConclave) Run ¶
func (raftConclave *RaftConclave) Run() (err error)
Click to show internal directories.
Click to hide internal directories.