Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptorRole ¶
type AcceptorRole struct {
// contains filtered or unexported fields
}
* Acceptor Role
func Construct ¶
func Construct(roleId uint64, log *replicatedlog.Log) *AcceptorRole
Constructor for AcceptorRole
func (*AcceptorRole) Accept ¶
func (this *AcceptorRole) Accept(proposal *ProposalReq, reply *ProposalResp) error
func (*AcceptorRole) Prepare ¶
func (this *AcceptorRole) Prepare(req *PrepareReq, reply *PrepareResp) error
func (*AcceptorRole) Success ¶
func (this *AcceptorRole) Success(info *SuccessNotify, reply *int) error
type PrepareReq ¶
Request sent out by proposer during prepare phase
type PrepareResp ¶
type PrepareResp struct { PromiseAccepted bool AcceptedProposalId proposal.Id AcceptedValue string NoMoreAccepted bool RoleId uint64 }
Response sent by acceptors during prepare phase
type ProposalReq ¶
Request sent out by proposer during proposal phase
type ProposalResp ¶
Response sent by acceptors during proposal phase
type SuccessNotify ¶
Click to show internal directories.
Click to hide internal directories.