manager

package
v0.0.0-...-daaf58e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2020 License: MIT Imports: 3 Imported by: 0

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

func (this *ProposalManager) GenerateProposalIdToBeat(hint proposal.Id) (proposal.Id, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL