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 ¶
func (_m *BlockIndexer) GetRetainHeight() (int64, error)
GetRetainHeight provides a mock function with given 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 ¶
func (_m *BlockIndexer) Prune(retainHeight int64) (int64, int64, error)
Prune provides a mock function with given fields: retainHeight
func (*BlockIndexer) SetLogger ¶
func (_m *BlockIndexer) SetLogger(l log.Logger)
SetLogger provides a mock function with given fields: l
func (*BlockIndexer) SetRetainHeight ¶
func (_m *BlockIndexer) SetRetainHeight(retainHeight int64) error
SetRetainHeight provides a mock function with given fields: retainHeight