Versions in this module Expand all Collapse all v0 v0.23.1 Nov 14, 2018 v0.23.0 Nov 9, 2018 Changes in this version + type Cache struct + func NewCache(backend Reader) *Cache + func (cache *Cache) Backend() Reader + func (cache *Cache) Flush(output Writer, backend Reader) error + func (cache *Cache) GetProposal(proposalHash []byte) (*payload.Ballot, error) + func (cache *Cache) RemoveProposal(proposalHash []byte) error + func (cache *Cache) Reset(backend Reader) + func (cache *Cache) Sync(state Writer) error + func (cache *Cache) UpdateProposal(proposalHash []byte, ballot *payload.Ballot) error + type Iterable interface + IterateProposals func(consumer func(proposalHash []byte, proposal *payload.Ballot) (stop bool)) (stopped bool, err error) + type IterableReader interface + type IterableReaderWriter interface + type ProposalHash [tmhash.Size]byte + type ProposalHashArray []ProposalHash + func (p ProposalHashArray) Len() int + func (p ProposalHashArray) Less(i, j int) bool + func (p ProposalHashArray) Swap(i, j int) + type Reader interface + GetProposal func(proposalHash []byte) (*payload.Ballot, error) + type ReaderWriter interface + type Writer interface + RemoveProposal func(proposalHash []byte) error + UpdateProposal func(proposalHash []byte, proposal *payload.Ballot) error