Documentation ¶
Index ¶
- type TxIndexer
- func (_m *TxIndexer) AddBatch(b *txindex.Batch) error
- func (_m *TxIndexer) Get(hash []byte) (*v1.TxResult, error)
- func (_m *TxIndexer) GetRetainHeight() (int64, error)
- func (_m *TxIndexer) Index(result *v1.TxResult) error
- func (_m *TxIndexer) Prune(retainHeight int64) (int64, int64, error)
- func (_m *TxIndexer) Search(ctx context.Context, q *query.Query, pagSettings txindex.Pagination) ([]*v1.TxResult, int, error)
- func (_m *TxIndexer) SetLogger(l log.Logger)
- func (_m *TxIndexer) SetRetainHeight(retainHeight int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TxIndexer ¶
TxIndexer is an autogenerated mock type for the TxIndexer type
func NewTxIndexer ¶
NewTxIndexer creates a new instance of TxIndexer. 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 (*TxIndexer) GetRetainHeight ¶
GetRetainHeight provides a mock function with given fields:
func (*TxIndexer) Search ¶
func (_m *TxIndexer) Search(ctx context.Context, q *query.Query, pagSettings txindex.Pagination) ([]*v1.TxResult, int, error)
Search provides a mock function with given fields: ctx, q, pagSettings
func (*TxIndexer) SetRetainHeight ¶
SetRetainHeight provides a mock function with given fields: retainHeight
Click to show internal directories.
Click to hide internal directories.