Documentation
¶
Index ¶
- type BlockIndexer
- func (_m *BlockIndexer) GetRetainHeight() (int64, error)
- func (_m *BlockIndexer) Has(height int64) (bool, error)
- func (_m *BlockIndexer) Index(events types.EventDataNewBlockEvents) error
- func (_m *BlockIndexer) Prune(retainHeight int64) (int64, int64, error)
- func (_m *BlockIndexer) Search(ctx context.Context, q *query.Query) ([]int64, error)
- func (_m *BlockIndexer) SetLogger(l log.Logger)
- func (_m *BlockIndexer) SetRetainHeight(retainHeight int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockIndexer ¶
BlockIndexer is an autogenerated mock type for the BlockIndexer type
func NewBlockIndexer ¶
func NewBlockIndexer(t interface { mock.TestingT Cleanup(func()) }) *BlockIndexer
NewBlockIndexer creates a new instance of BlockIndexer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*BlockIndexer) GetRetainHeight ¶ added in v1.0.0
func (_m *BlockIndexer) GetRetainHeight() (int64, error)
GetRetainHeight provides a mock function with no fields
func (*BlockIndexer) Has ¶
func (_m *BlockIndexer) Has(height int64) (bool, error)
Has provides a mock function with given fields: height
func (*BlockIndexer) Index ¶
func (_m *BlockIndexer) Index(events types.EventDataNewBlockEvents) error
Index provides a mock function with given fields: events
func (*BlockIndexer) Prune ¶ added in v1.0.0
func (_m *BlockIndexer) Prune(retainHeight int64) (int64, int64, error)
Prune provides a mock function with given fields: retainHeight
func (*BlockIndexer) SetLogger ¶ added in v0.38.0
func (_m *BlockIndexer) SetLogger(l log.Logger)
SetLogger provides a mock function with given fields: l
func (*BlockIndexer) SetRetainHeight ¶ added in v1.0.0
func (_m *BlockIndexer) SetRetainHeight(retainHeight int64) error
SetRetainHeight provides a mock function with given fields: retainHeight