Versions in this module Expand all Collapse all v1 v1.0.0 Jan 6, 2023 Changes in this version + var ErrorEmptyHash = errors.New("transaction hash cannot be empty") + type Batch struct + Ops []*types.TxResult + func NewBatch(n int64) *Batch + func (b *Batch) Add(result *types.TxResult) error + func (b *Batch) Size() int + type IndexerService struct + func NewIndexerService(idr TxIndexer, eventBus *types.EventBus) *IndexerService + func (is *IndexerService) OnStart() error + func (is *IndexerService) OnStop() + func (is *IndexerService) Wait() + type TxIndexer interface + AddBatch func(b *Batch) error + Get func(hash []byte) (*types.TxResult, error) + Index func(result *types.TxResult) error + Search func(ctx context.Context, q *query.Query) ([]*types.TxResult, error)