Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProposalManager ¶
type ProposalManager struct {
// contains filtered or unexported fields
}
Threadsafe proposal ID generator
func ConstructProposalManager ¶
func ConstructProposalManager(roleId uint64, disk *recovery.Manager) (*ProposalManager, error)
Constructor for the proposal manager
func (*ProposalManager) GenerateNextProposalId ¶
func (this *ProposalManager) GenerateNextProposalId() (proposal.Id, error)
Generates & returns a new proposal ID
func (*ProposalManager) GenerateProposalIdToBeat ¶
Generates & returns a new proposal ID which will outrank the given proposal ID
func (*ProposalManager) GetCurrentProposalId ¶
func (this *ProposalManager) GetCurrentProposalId() proposal.Id
Returns the most current proposal ID generated by this manager
Click to show internal directories.
Click to hide internal directories.