Documentation ¶
Index ¶
- Constants
- type Accept
- type AcceptCache
- type AcceptReply
- type AcceptReplyCache
- type Commit
- type CommitCache
- type CommitShort
- type CommitShortCache
- type PreAccept
- type PreAcceptCache
- type PreAcceptNOK
- type PreAcceptNOKCache
- type PreAcceptOK
- type PreAcceptOKCache
- type PreAcceptReply
- type PreAcceptReplyCache
- type Prepare
- type PrepareCache
- type PrepareReply
- type PrepareReplyCache
- type TryPreAccept
- type TryPreAcceptCache
- type TryPreAcceptReply
- type TryPreAcceptReplyCache
Constants ¶
View Source
const ( NONE int8 = iota PROPOSE PREACCEPTED PREACCEPTED_EQ ACCEPTED COMMITTED EXECUTED )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accept ¶
func (*Accept) BinarySize ¶
func (*Accept) New ¶
func (p *Accept) New() fastrpc.Serializable
type AcceptCache ¶
type AcceptCache struct {
// contains filtered or unexported fields
}
func NewAcceptCache ¶
func NewAcceptCache() *AcceptCache
func (*AcceptCache) Get ¶
func (p *AcceptCache) Get() *Accept
func (*AcceptCache) Put ¶
func (p *AcceptCache) Put(t *Accept)
type AcceptReply ¶
func (*AcceptReply) BinarySize ¶
func (t *AcceptReply) BinarySize() (nbytes int, sizeKnown bool)
func (*AcceptReply) Marshal ¶
func (t *AcceptReply) Marshal(wire io.Writer)
func (*AcceptReply) New ¶
func (p *AcceptReply) New() fastrpc.Serializable
type AcceptReplyCache ¶
type AcceptReplyCache struct {
// contains filtered or unexported fields
}
func NewAcceptReplyCache ¶
func NewAcceptReplyCache() *AcceptReplyCache
func (*AcceptReplyCache) Get ¶
func (p *AcceptReplyCache) Get() *AcceptReply
func (*AcceptReplyCache) Put ¶
func (p *AcceptReplyCache) Put(t *AcceptReply)
type Commit ¶
type Commit struct { LeaderId int32 Replica int32 Instance int32 Command []state.Command Seq int32 Deps [5]int32 }
func (*Commit) BinarySize ¶
func (*Commit) New ¶
func (p *Commit) New() fastrpc.Serializable
type CommitCache ¶
type CommitCache struct {
// contains filtered or unexported fields
}
func NewCommitCache ¶
func NewCommitCache() *CommitCache
func (*CommitCache) Get ¶
func (p *CommitCache) Get() *Commit
func (*CommitCache) Put ¶
func (p *CommitCache) Put(t *Commit)
type CommitShort ¶
type CommitShort struct { LeaderId int32 Replica int32 Instance int32 Count int32 Seq int32 Deps [5]int32 }
func (*CommitShort) BinarySize ¶
func (t *CommitShort) BinarySize() (nbytes int, sizeKnown bool)
func (*CommitShort) Marshal ¶
func (t *CommitShort) Marshal(wire io.Writer)
func (*CommitShort) New ¶
func (p *CommitShort) New() fastrpc.Serializable
type CommitShortCache ¶
type CommitShortCache struct {
// contains filtered or unexported fields
}
func NewCommitShortCache ¶
func NewCommitShortCache() *CommitShortCache
func (*CommitShortCache) Get ¶
func (p *CommitShortCache) Get() *CommitShort
func (*CommitShortCache) Put ¶
func (p *CommitShortCache) Put(t *CommitShort)
type PreAccept ¶
type PreAccept struct { LeaderId int32 Replica int32 LenCurrent int32 LenPrevious int32 Current []state.TransferLog Previous []state.TransferLog Value int32 CommitIndex int32 }
func (*PreAccept) BinarySize ¶
func (*PreAccept) New ¶
func (p *PreAccept) New() fastrpc.Serializable
type PreAcceptCache ¶
type PreAcceptCache struct {
// contains filtered or unexported fields
}
func NewPreAcceptCache ¶
func NewPreAcceptCache() *PreAcceptCache
func (*PreAcceptCache) Get ¶
func (p *PreAcceptCache) Get() *PreAccept
func (*PreAcceptCache) Put ¶
func (p *PreAcceptCache) Put(t *PreAccept)
type PreAcceptNOK ¶
func (*PreAcceptNOK) BinarySize ¶
func (t *PreAcceptNOK) BinarySize() (nbytes int, sizeKnown bool)
///////////PREACCEPTNOK//////////////////////////
func (*PreAcceptNOK) Marshal ¶
func (t *PreAcceptNOK) Marshal(wire io.Writer)
///////////////PREACCEPTNOK MARSHAL////////////////////////
func (*PreAcceptNOK) New ¶
func (p *PreAcceptNOK) New() fastrpc.Serializable
type PreAcceptNOKCache ¶
type PreAcceptNOKCache struct {
// contains filtered or unexported fields
}
func NewPreAcceptNOKCache ¶
func NewPreAcceptNOKCache() *PreAcceptNOKCache
func (*PreAcceptNOKCache) Get ¶
func (p *PreAcceptNOKCache) Get() *PreAcceptNOK
func (*PreAcceptNOKCache) Put ¶
func (p *PreAcceptNOKCache) Put(t *PreAcceptNOK)
type PreAcceptOK ¶
type PreAcceptOK struct { LeaderId int32 Replica int32 LenCurrent int32 LenPrevious int32 Current []state.TransferLog Previous []state.TransferLog Value int32 CommitIndex int32 }
func (*PreAcceptOK) BinarySize ¶
func (t *PreAcceptOK) BinarySize() (nbytes int, sizeKnown bool)
func (*PreAcceptOK) Marshal ¶
func (t *PreAcceptOK) Marshal(wire io.Writer)
///////////////PREACCEPTOK MARSHAL////////////////////////
func (*PreAcceptOK) New ¶
func (p *PreAcceptOK) New() fastrpc.Serializable
type PreAcceptOKCache ¶
type PreAcceptOKCache struct {
// contains filtered or unexported fields
}
func NewPreAcceptOKCache ¶
func NewPreAcceptOKCache() *PreAcceptOKCache
func (*PreAcceptOKCache) Get ¶
func (p *PreAcceptOKCache) Get() *PreAcceptOK
func (*PreAcceptOKCache) Put ¶
func (p *PreAcceptOKCache) Put(t *PreAcceptOK)
type PreAcceptReply ¶
type PreAcceptReply struct { Replica int32 Instance int32 OK uint8 Ballot int32 Seq int32 Deps [5]int32 CommittedDeps [5]int32 }
func (*PreAcceptReply) BinarySize ¶
func (t *PreAcceptReply) BinarySize() (nbytes int, sizeKnown bool)
func (*PreAcceptReply) Marshal ¶
func (t *PreAcceptReply) Marshal(wire io.Writer)
func (*PreAcceptReply) New ¶
func (p *PreAcceptReply) New() fastrpc.Serializable
type PreAcceptReplyCache ¶
type PreAcceptReplyCache struct {
// contains filtered or unexported fields
}
func NewPreAcceptReplyCache ¶
func NewPreAcceptReplyCache() *PreAcceptReplyCache
func (*PreAcceptReplyCache) Get ¶
func (p *PreAcceptReplyCache) Get() *PreAcceptReply
func (*PreAcceptReplyCache) Put ¶
func (p *PreAcceptReplyCache) Put(t *PreAcceptReply)
type Prepare ¶
func (*Prepare) BinarySize ¶
func (*Prepare) New ¶
func (p *Prepare) New() fastrpc.Serializable
type PrepareCache ¶
type PrepareCache struct {
// contains filtered or unexported fields
}
func NewPrepareCache ¶
func NewPrepareCache() *PrepareCache
func (*PrepareCache) Get ¶
func (p *PrepareCache) Get() *Prepare
func (*PrepareCache) Put ¶
func (p *PrepareCache) Put(t *Prepare)
type PrepareReply ¶
type PrepareReply struct { AcceptorId int32 Replica int32 Instance int32 OK uint8 Ballot int32 Status int8 Command []state.Command Seq int32 Deps [5]int32 }
func (*PrepareReply) BinarySize ¶
func (t *PrepareReply) BinarySize() (nbytes int, sizeKnown bool)
func (*PrepareReply) Marshal ¶
func (t *PrepareReply) Marshal(wire io.Writer)
func (*PrepareReply) New ¶
func (p *PrepareReply) New() fastrpc.Serializable
type PrepareReplyCache ¶
type PrepareReplyCache struct {
// contains filtered or unexported fields
}
func NewPrepareReplyCache ¶
func NewPrepareReplyCache() *PrepareReplyCache
func (*PrepareReplyCache) Get ¶
func (p *PrepareReplyCache) Get() *PrepareReply
func (*PrepareReplyCache) Put ¶
func (p *PrepareReplyCache) Put(t *PrepareReply)
type TryPreAccept ¶
type TryPreAccept struct { LeaderId int32 Replica int32 Instance int32 Ballot int32 Command []state.Command Seq int32 Deps [5]int32 }
func (*TryPreAccept) BinarySize ¶
func (t *TryPreAccept) BinarySize() (nbytes int, sizeKnown bool)
func (*TryPreAccept) Marshal ¶
func (t *TryPreAccept) Marshal(wire io.Writer)
func (*TryPreAccept) New ¶
func (p *TryPreAccept) New() fastrpc.Serializable
type TryPreAcceptCache ¶
type TryPreAcceptCache struct {
// contains filtered or unexported fields
}
func NewTryPreAcceptCache ¶
func NewTryPreAcceptCache() *TryPreAcceptCache
func (*TryPreAcceptCache) Get ¶
func (p *TryPreAcceptCache) Get() *TryPreAccept
func (*TryPreAcceptCache) Put ¶
func (p *TryPreAcceptCache) Put(t *TryPreAccept)
type TryPreAcceptReply ¶
type TryPreAcceptReply struct { AcceptorId int32 Replica int32 Instance int32 OK uint8 Ballot int32 ConflictReplica int32 ConflictInstance int32 ConflictStatus int8 }
func (*TryPreAcceptReply) BinarySize ¶
func (t *TryPreAcceptReply) BinarySize() (nbytes int, sizeKnown bool)
func (*TryPreAcceptReply) Marshal ¶
func (t *TryPreAcceptReply) Marshal(wire io.Writer)
func (*TryPreAcceptReply) New ¶
func (p *TryPreAcceptReply) New() fastrpc.Serializable
type TryPreAcceptReplyCache ¶
type TryPreAcceptReplyCache struct {
// contains filtered or unexported fields
}
func NewTryPreAcceptReplyCache ¶
func NewTryPreAcceptReplyCache() *TryPreAcceptReplyCache
func (*TryPreAcceptReplyCache) Get ¶
func (p *TryPreAcceptReplyCache) Get() *TryPreAcceptReply
func (*TryPreAcceptReplyCache) Put ¶
func (p *TryPreAcceptReplyCache) Put(t *TryPreAcceptReply)
Click to show internal directories.
Click to hide internal directories.