Documentation
¶
Index ¶
- type Store
- func (_m *Store) CountBlocks(ctx context.Context) (uint64, error)
- func (_m *Store) Delete(ctx context.Context, from int64, to int64) error
- func (_m *Store) FindBlockByHash(ctx context.Context, hash []byte) (*model.Header, error)
- func (_m *Store) FindBlockByNumber(ctx context.Context, blockNumber int64) (*model.Header, error)
- func (_m *Store) FindLatestBlock(ctx context.Context) (*model.Header, error)
- func (_m *Store) FindTd(ctx context.Context, hash []byte) (*model.TotalDifficulty, error)
- func (_m *Store) Insert(ctx context.Context, data *model.Header) error
- func (_m *Store) InsertTd(ctx context.Context, data *model.TotalDifficulty) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
Store is an autogenerated mock type for the Store type
func (*Store) CountBlocks ¶ added in v0.11.0
CountBlocks provides a mock function with given fields: ctx
func (*Store) FindBlockByHash ¶
FindBlockByHash provides a mock function with given fields: ctx, hash
func (*Store) FindBlockByNumber ¶
FindBlockByNumber provides a mock function with given fields: ctx, blockNumber
func (*Store) FindLatestBlock ¶
FindLatestBlock provides a mock function with given fields: ctx
Click to show internal directories.
Click to hide internal directories.