Documentation ¶
Index ¶
- type Log
- func (this *Log) GetEntryAt(index int) LogEntry
- func (this *Log) GetFirstUnchosenIndex() int
- func (this *Log) GetMinProposalId() proposal.Id
- func (this *Log) MarkAsChosen(proposalId proposal.Id, upto int)
- func (this *Log) NoMoreAcceptedPast(index int) bool
- func (this *Log) SetEntryAt(index int, value string, proposalId proposal.Id)
- func (this *Log) UpdateMinProposalId(proposalId proposal.Id) proposal.Id
- type LogEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
func ConstructLog ¶
Creates a new replicated log instance, using data from cold storage files
func (*Log) GetEntryAt ¶
Returns details of the log entry at the specified index
func (*Log) GetFirstUnchosenIndex ¶
Returns the index of the first entry in the log for which no value has been chosen
func (*Log) GetMinProposalId ¶
Returns the minimum proposal for this log; all lesser proposals should be rejected
func (*Log) MarkAsChosen ¶
Marks all log entries with the given proposalId as chosen, up to the given index
func (*Log) NoMoreAcceptedPast ¶
Certifies that no proposals have been accepted past the specified index
func (*Log) SetEntryAt ¶
Sets the value of the log entry at the specified index
Click to show internal directories.
Click to hide internal directories.