Documentation ¶
Index ¶
- type Option
- type Store
- func (s *Store) BlockByHeight(ctx context.Context, height uint64) (*flowgo.Block, error)
- func (s *Store) BlockByID(ctx context.Context, blockID flowgo.Identifier) (*flowgo.Block, error)
- func (s *Store) LatestBlock(ctx context.Context) (flowgo.Block, error)
- func (s *Store) LedgerByHeight(ctx context.Context, blockHeight uint64) (snapshot.StorageSnapshot, error)
- func (s *Store) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Store)
func WithClient ¶
func WithClient( executionClient executiondata.ExecutionDataAPIClient, accessClient access.AccessAPIClient, ) Option
WithClient can set an rpc host client
This is mostly use for testing.
func WithRPCHost ¶ added in v0.62.0
WithRPCHost sets access/observer node host.
func WithStartBlockHeight ¶ added in v0.62.0
WithStartBlockHeight sets the start height for the store.
type Store ¶
func (*Store) BlockByHeight ¶
func (*Store) LedgerByHeight ¶
Click to show internal directories.
Click to hide internal directories.