Documentation
¶
Index ¶
- func NewAvailableMajorityCallback(majRequired ...*gsim.GraphNode) *majorityCallback
- func NewHistoryNodes() *historyNodes
- func NewInhibitMajorityCallback(majRequired ...*gsim.GraphNode) *majorityCallback
- type Ballot
- type EngineVar
- type Histogram
- func NewHistogram(cc chan []*Histogram, rng *rand.Rand) *Histogram
- func ValidateAllHistories(engine TxnEngine, txns []*p.Txn, vis []*VarInstance, snm StartingNodeModifier, ...) *Histogram
- func ValidateHistory(engine TxnEngine, txns []*p.Txn, vis []*VarInstance, snm StartingNodeModifier, ...) *Histogram
- type NoCompletionBallot
- type NoCompletionTxnEngine
- type NoCompletionTxnEngineVar
- type SimpleBallot
- type StartingNodeModifier
- type TxnEngine
- type VarInstance
- type VarInstances
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHistoryNodes ¶
func NewHistoryNodes() *historyNodes
Types ¶
type Histogram ¶
type Histogram struct {
// contains filtered or unexported fields
}
func ValidateAllHistories ¶
func ValidateAllHistories(engine TxnEngine, txns []*p.Txn, vis []*VarInstance, snm StartingNodeModifier, majorityVoting bool, serialHistories []*p.HistoryNode) *Histogram
func ValidateHistory ¶
func ValidateHistory(engine TxnEngine, txns []*p.Txn, vis []*VarInstance, snm StartingNodeModifier, majorityVoting bool, serialHistories []*p.HistoryNode, num *big.Int) *Histogram
type NoCompletionBallot ¶
type NoCompletionBallot struct{}
func (*NoCompletionBallot) AllLocallyComplete ¶
func (ncb *NoCompletionBallot) AllLocallyComplete() bool
type NoCompletionTxnEngine ¶
type NoCompletionTxnEngine struct{}
func (*NoCompletionTxnEngine) NeedsCompletionNodes ¶
func (ncte *NoCompletionTxnEngine) NeedsCompletionNodes() bool
type NoCompletionTxnEngineVar ¶
type NoCompletionTxnEngineVar struct{}
func (*NoCompletionTxnEngineVar) TxnGloballyCompleteReceived ¶
func (nctev *NoCompletionTxnEngineVar) TxnGloballyCompleteReceived(txn *p.Txn, ballot Ballot) error
type SimpleBallot ¶
type SimpleBallot struct { *p.Txn NoCompletionBallot // contains filtered or unexported fields }
func NewSimpleBallot ¶
func NewSimpleBallot(txn *p.Txn, remaining, completions int) *SimpleBallot
func (*SimpleBallot) AllVotesReceived ¶
func (sb *SimpleBallot) AllVotesReceived() bool
func (*SimpleBallot) IsAbort ¶
func (sb *SimpleBallot) IsAbort() bool
func (*SimpleBallot) IsStable ¶
func (sb *SimpleBallot) IsStable() bool
func (*SimpleBallot) Vote ¶
func (sb *SimpleBallot) Vote(vi *VarInstance, decision p.Outcome) error
type StartingNodeModifier ¶
type VarInstance ¶
func NewVarInstance ¶
func NewVarInstance(id string, v p.Var) *VarInstance
func (*VarInstance) String ¶
func (vi *VarInstance) String() string
type VarInstances ¶
type VarInstances []*VarInstance
func (VarInstances) Len ¶
func (vi VarInstances) Len() int
func (VarInstances) Less ¶
func (vi VarInstances) Less(i, j int) bool
func (VarInstances) Sort ¶
func (vi VarInstances) Sort()
func (VarInstances) Swap ¶
func (vi VarInstances) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.