stores

package
v0.43.1-rc.7-schdtx-index Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventsStore

type EventsStore struct {
	// contains filtered or unexported fields
}

EventsStore handles persisting events

func NewEventsStore

func NewEventsStore(
	data []flow.Event,
	persistedEvents storage.Events,
	blockID flow.Identifier,
) *EventsStore

func (*EventsStore) Persist

func (e *EventsStore) Persist(_ lockctx.Proof, batch storage.ReaderBatchWriter) error

Persist adds events to the batch.

No error returns are expected during normal operations

type LatestSealedResultStore

type LatestSealedResultStore struct {
	// contains filtered or unexported fields
}

LatestSealedResultStore handles persisting transaction result error messages

func NewLatestSealedResultStore

func NewLatestSealedResultStore(
	latestPersistedSealedResult storage.LatestPersistedSealedResult,
	executionResultID flow.Identifier,
	height uint64,
) *LatestSealedResultStore

func (*LatestSealedResultStore) Persist

Persist adds the latest sealed result to the batch.

No error returns are expected during normal operations

type LightCollectionsStore

type LightCollectionsStore struct {
	// contains filtered or unexported fields
}

LightCollectionsStore handles persisting light collections

func NewCollectionsStore

func NewCollectionsStore(
	data []*flow.Collection,
	persistedCollections storage.Collections,
) *LightCollectionsStore

func (*LightCollectionsStore) Persist

Persist adds light collections to the batch.

No error returns are expected during normal operations

type PersisterStore

type PersisterStore interface {
	// Persist adds data to the batch for later commitment.
	//
	// No error returns are expected during normal operations
	Persist(lctx lockctx.Proof, batch storage.ReaderBatchWriter) error
}

PersisterStore is the interface to handle persisting of a data type to persisted storage using batch operation.

type ResultsStore

type ResultsStore struct {
	// contains filtered or unexported fields
}

ResultsStore handles persisting transaction results

func NewResultsStore

func NewResultsStore(
	data []flow.LightTransactionResult,
	persistedResults storage.LightTransactionResults,
	blockID flow.Identifier,
) *ResultsStore

func (*ResultsStore) Persist

Persist adds results to the batch.

No error returns are expected during normal operations

type TxResultErrMsgStore

type TxResultErrMsgStore struct {
	// contains filtered or unexported fields
}

TxResultErrMsgStore handles persisting transaction result error messages

func NewTxResultErrMsgStore

func NewTxResultErrMsgStore(
	data []flow.TransactionResultErrorMessage,
	persistedTxResultErrMsg storage.TransactionResultErrorMessages,
	blockID flow.Identifier,
) *TxResultErrMsgStore

func (*TxResultErrMsgStore) Persist

Persist adds transaction result error messages to the batch.

No error returns are expected during normal operations

Jump to

Keyboard shortcuts

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