Documentation
¶
Index ¶
- func Combine(ops ...func(*badger.Txn) error) func(*badger.Txn) error
- func Fallback(ops ...func(*badger.Txn) error) func(*badger.Txn) error
- type Library
- func (l *Library) IndexCollectionsForHeight(height uint64, collIDs []flow.Identifier) func(*badger.Txn) error
- func (l *Library) IndexHeightForBlock(blockID flow.Identifier, height uint64) func(*badger.Txn) error
- func (l *Library) IndexTransactionsForCollection(collID flow.Identifier, txIDs []flow.Identifier) func(*badger.Txn) error
- func (l *Library) IndexTransactionsForHeight(height uint64, txIDs []flow.Identifier) func(*badger.Txn) error
- func (l *Library) LookupCollectionsForHeight(height uint64, collIDs *[]flow.Identifier) func(*badger.Txn) error
- func (l *Library) LookupHeightForBlock(blockID flow.Identifier, height *uint64) func(*badger.Txn) error
- func (l *Library) LookupTransactionsForCollection(collID flow.Identifier, txIDs *[]flow.Identifier) func(*badger.Txn) error
- func (l *Library) LookupTransactionsForHeight(height uint64, txIDs *[]flow.Identifier) func(*badger.Txn) error
- func (l *Library) RetrieveCollection(collectionID flow.Identifier, collection *flow.LightCollection) func(*badger.Txn) error
- func (l *Library) RetrieveCommit(height uint64, commit *flow.StateCommitment) func(*badger.Txn) error
- func (l *Library) RetrieveEvents(height uint64, types []flow.EventType, events *[]flow.Event) func(*badger.Txn) error
- func (l *Library) RetrieveFirst(height *uint64) func(*badger.Txn) error
- func (l *Library) RetrieveHeader(height uint64, header *flow.Header) func(*badger.Txn) error
- func (l *Library) RetrieveLast(height *uint64) func(*badger.Txn) error
- func (l *Library) RetrievePayload(height uint64, path ledger.Path, payload *ledger.Payload) func(*badger.Txn) error
- func (l *Library) RetrieveTransaction(transactionID flow.Identifier, transaction *flow.TransactionBody) func(*badger.Txn) error
- func (l *Library) SaveCollection(collection *flow.LightCollection) func(*badger.Txn) error
- func (l *Library) SaveCommit(height uint64, commit flow.StateCommitment) func(*badger.Txn) error
- func (l *Library) SaveEvents(height uint64, typ flow.EventType, events []flow.Event) func(*badger.Txn) error
- func (l *Library) SaveFirst(height uint64) func(*badger.Txn) error
- func (l *Library) SaveHeader(height uint64, header *flow.Header) func(*badger.Txn) error
- func (l *Library) SaveLast(height uint64) func(*badger.Txn) error
- func (l *Library) SavePayload(height uint64, path ledger.Path, payload *ledger.Payload) func(*badger.Txn) error
- func (l *Library) SaveTransaction(transaction *flow.TransactionBody) func(*badger.Txn) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Library ¶
type Library struct {
// contains filtered or unexported fields
}
func (*Library) IndexCollectionsForHeight ¶
func (*Library) IndexHeightForBlock ¶
func (*Library) IndexTransactionsForCollection ¶
func (l *Library) IndexTransactionsForCollection(collID flow.Identifier, txIDs []flow.Identifier) func(*badger.Txn) error
func (*Library) IndexTransactionsForHeight ¶
func (*Library) LookupCollectionsForHeight ¶
func (*Library) LookupHeightForBlock ¶
func (*Library) LookupTransactionsForCollection ¶
func (l *Library) LookupTransactionsForCollection(collID flow.Identifier, txIDs *[]flow.Identifier) func(*badger.Txn) error
func (*Library) LookupTransactionsForHeight ¶
func (*Library) RetrieveCollection ¶
func (l *Library) RetrieveCollection(collectionID flow.Identifier, collection *flow.LightCollection) func(*badger.Txn) error
func (*Library) RetrieveCommit ¶
func (*Library) RetrieveEvents ¶
func (*Library) RetrieveFirst ¶
func (*Library) RetrieveHeader ¶
func (*Library) RetrieveLast ¶
func (*Library) RetrievePayload ¶
func (*Library) RetrieveTransaction ¶
func (l *Library) RetrieveTransaction(transactionID flow.Identifier, transaction *flow.TransactionBody) func(*badger.Txn) error
func (*Library) SaveCollection ¶
func (*Library) SaveCommit ¶
func (*Library) SaveEvents ¶
func (*Library) SaveHeader ¶
func (*Library) SavePayload ¶
func (*Library) SaveTransaction ¶
Click to show internal directories.
Click to hide internal directories.