Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultTicker ¶
Types ¶
type ConfigChange ¶
type RaftManager ¶
type RaftManager struct { Dispatcher dispatcher // contains filtered or unexported fields }
func NewRaftMgr ¶
func NewRaftMgr(cls core.Cluster, cfg Config, sm core.StateMachine, inputCh chan *Rpc) *RaftManager
func NewRaftMgrWithTicker ¶
func NewRaftMgrWithTicker(cls core.Cluster, cfg Config, sm core.StateMachine, inputCh chan *Rpc, ticker Ticker) *RaftManager
func (*RaftManager) GetAllEntries ¶
func (m *RaftManager) GetAllEntries() []core.Entry
func (*RaftManager) GetOthers ¶
func (m *RaftManager) GetOthers() []core.Address
func (*RaftManager) IsCandidate ¶
func (m *RaftManager) IsCandidate() bool
func (*RaftManager) IsFollower ¶
func (m *RaftManager) IsFollower() bool
func (*RaftManager) IsLeader ¶
func (m *RaftManager) IsLeader() bool
func (*RaftManager) Run ¶
func (m *RaftManager) Run()
func (*RaftManager) Stop ¶
func (m *RaftManager) Stop()
Click to show internal directories.
Click to hide internal directories.