Documentation ¶
Index ¶
- type Store
- func (s *Store) BlockByHeight(_ context.Context, height uint64) (*flowgo.Block, error)
- func (s *Store) BlockByID(_ context.Context, blockID flowgo.Identifier) (*flowgo.Block, error)
- func (s *Store) CollectionByID(_ context.Context, collectionID flowgo.Identifier) (flowgo.LightCollection, error)
- func (s *Store) CommitBlock(_ context.Context, block flowgo.Block, collections []*flowgo.LightCollection, ...) error
- func (s *Store) EventsByHeight(_ context.Context, blockHeight uint64, eventType string) ([]flowgo.Event, error)
- func (s *Store) FullCollectionByID(_ context.Context, collectionID flowgo.Identifier) (flowgo.Collection, error)
- func (s *Store) LatestBlock(_ context.Context) (flowgo.Block, error)
- func (s *Store) LatestBlockHeight(ctx context.Context) (uint64, error)
- func (s *Store) LedgerByHeight(_ context.Context, blockHeight uint64) (snapshot.StorageSnapshot, error)
- func (s *Store) Start() error
- func (s *Store) Stop()
- func (s *Store) StoreBlock(_ context.Context, block *flowgo.Block) error
- func (s *Store) TransactionByID(_ context.Context, transactionID flowgo.Identifier) (flowgo.TransactionBody, error)
- func (s *Store) TransactionResultByID(_ context.Context, transactionID flowgo.Identifier) (types.StorableTransactionResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements the Store interface with an in-memory store.
func (*Store) BlockByHeight ¶
func (*Store) CollectionByID ¶
func (s *Store) CollectionByID( _ context.Context, collectionID flowgo.Identifier, ) (flowgo.LightCollection, error)
func (*Store) CommitBlock ¶
func (s *Store) CommitBlock( _ context.Context, block flowgo.Block, collections []*flowgo.LightCollection, transactions map[flowgo.Identifier]*flowgo.TransactionBody, transactionResults map[flowgo.Identifier]*types.StorableTransactionResult, executionSnapshot *snapshot.ExecutionSnapshot, events []flowgo.Event, ) error
func (*Store) EventsByHeight ¶
func (*Store) FullCollectionByID ¶ added in v0.59.1
func (s *Store) FullCollectionByID( _ context.Context, collectionID flowgo.Identifier, ) (flowgo.Collection, error)
func (*Store) LatestBlockHeight ¶ added in v0.42.0
func (*Store) LedgerByHeight ¶ added in v0.46.0
func (*Store) TransactionByID ¶
func (s *Store) TransactionByID( _ context.Context, transactionID flowgo.Identifier, ) (flowgo.TransactionBody, error)
func (*Store) TransactionResultByID ¶
func (s *Store) TransactionResultByID( _ context.Context, transactionID flowgo.Identifier, ) (types.StorableTransactionResult, error)
Click to show internal directories.
Click to hide internal directories.