Documentation ¶
Index ¶
- Constants
- type Consensus
- func (c *Consensus) Dispatch(index uint16, p *p2p.Packet)
- func (c *Consensus) SendCommit(notify *message.SendCommit)
- func (c *Consensus) SendPrecommit(notify *message.SendPrecommit)
- func (c *Consensus) SendPrevote(notify *message.SendPrevote)
- func (c *Consensus) SetActor(tid *actor.PID)
- func (c *Consensus) Start()
Constants ¶
View Source
const ( ConsensusPreVote = 1 ConsensusPreCommit = 2 ConsensusCommit = 3 )
DO NOT EDIT
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consensus ¶
type Consensus struct {
// contains filtered or unexported fields
}
func MakeConsensus ¶
func MakeConsensus() *Consensus
func (*Consensus) SendCommit ¶
func (c *Consensus) SendCommit(notify *message.SendCommit)
func (*Consensus) SendPrecommit ¶
func (c *Consensus) SendPrecommit(notify *message.SendPrecommit)
func (*Consensus) SendPrevote ¶
func (c *Consensus) SendPrevote(notify *message.SendPrevote)
Click to show internal directories.
Click to hide internal directories.