Documentation ¶
Index ¶
- Constants
- Variables
- type BenOrBroadcast
- type BenOrBroadcastMsg
- type BenOrBroadcastReply
- type BenOrConsensus
- type BenOrConsensusMsg
- type BenOrConsensusReply
- type BenOrState
- type CandidateState
- type ClientReqStatus
- type Entry
- type ExtendedPriorityQueue
- type GetCommittedData
- type GetCommittedDataReply
- type Instance
- type Item
- type LeaderState
- type PriorityQueue
- type RPC
- type Replica
- func NewReplica(id int, peerAddrList []string, thrifty bool, exec bool, dreply bool, ...) *Replica
- func NewReplicaBenOr(id int, peerAddrList []string, thrifty bool, exec bool, dreply bool, ...) *Replica
- func NewReplicaRaft(id int, peerAddrList []string, thrifty bool, exec bool, dreply bool, ...) *Replica
- type ReplicateEntries
- type ReplicateEntriesReply
- type ReplyMsg
- type RequestVote
- type RequestVoteReply
- type ServerTimer
- type Set
- type UniqueCommand
- type UpdateMsg
Constants ¶
View Source
const ( Broadcasting uint8 = 0 StageOne = 1 StageTwo = 2 NotRunning = 3 )
View Source
const ( Vote0 uint8 = 0 Vote1 = 1 VoteQuestionMark = 2 VoteUninitialized = 3 )
View Source
const ( False uint8 = hydrofoilproto.False True = hydrofoilproto.True )
View Source
const ( LessUpToDate uint8 = 0 EquallyUpToDate = 1 MoreUpToDate = 2 )
Variables ¶
View Source
var CLIENTID uint32 = 0
Functions ¶
This section is empty.
Types ¶
type BenOrBroadcast ¶
type BenOrBroadcast = hydrofoilproto.BenOrBroadcast
type BenOrBroadcastMsg ¶
type BenOrBroadcastReply ¶
type BenOrBroadcastReply = hydrofoilproto.BenOrBroadcastReply
type BenOrConsensus ¶
type BenOrConsensus = hydrofoilproto.BenOrConsensus
type BenOrConsensusMsg ¶
type BenOrConsensusReply ¶
type BenOrConsensusReply = hydrofoilproto.BenOrConsensusReply
type BenOrState ¶
type BenOrState struct {
// contains filtered or unexported fields
}
type CandidateState ¶
type CandidateState struct {
// contains filtered or unexported fields
}
type ClientReqStatus ¶
type ClientReqStatus struct {
// contains filtered or unexported fields
}
type Entry ¶
type Entry = hydrofoilproto.Entry
type ExtendedPriorityQueue ¶
type ExtendedPriorityQueue struct {
// contains filtered or unexported fields
}
type GetCommittedData ¶
type GetCommittedData = hydrofoilproto.GetCommittedData
type GetCommittedDataReply ¶
type GetCommittedDataReply = hydrofoilproto.GetCommittedDataReply
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
An Item is something we manage in a priority queue.
type LeaderState ¶
type LeaderState struct {
// contains filtered or unexported fields
}
type PriorityQueue ¶
type PriorityQueue []*Item
A PriorityQueue implements heap.Interface and holds Items.
func (PriorityQueue) Len ¶
func (pq PriorityQueue) Len() int
func (PriorityQueue) Less ¶
func (pq PriorityQueue) Less(i, j int) bool
func (*PriorityQueue) Pop ¶
func (pq *PriorityQueue) Pop() any
func (*PriorityQueue) Push ¶
func (pq *PriorityQueue) Push(x any)
func (PriorityQueue) Swap ¶
func (pq PriorityQueue) Swap(i, j int)
type Replica ¶
type Replica struct { *genericsmr.Replica // extends a generic Paxos replica // contains filtered or unexported fields }
func NewReplica ¶
func NewReplica(id int, peerAddrList []string, thrifty bool, exec bool, dreply bool, durable bool) *Replica
Entry point
func NewReplicaBenOr ¶
type ReplicateEntries ¶
type ReplicateEntries = hydrofoilproto.ReplicateEntries
type ReplicateEntriesReply ¶
type ReplicateEntriesReply = hydrofoilproto.ReplicateEntriesReply
type RequestVote ¶
type RequestVote = hydrofoilproto.RequestVote
type RequestVoteReply ¶
type RequestVoteReply = hydrofoilproto.RequestVoteReply
type ServerTimer ¶
type ServerTimer struct {
// contains filtered or unexported fields
}
type UniqueCommand ¶
type UniqueCommand struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.