kv

package
v1.2.1-dev.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventSink

func NewEventSink(store dbm.DB) indexer.EventSink

Types

type EventSink

type EventSink struct {
	// contains filtered or unexported fields
}

The EventSink is an aggregator for redirecting the call path of the tx/block kvIndexer. For the implementation details please see the kv.go in the indexer/block and indexer/tx folder.

func (*EventSink) GetTxByHash

func (kves *EventSink) GetTxByHash(hash []byte) (*abci.TxResult, error)

func (*EventSink) HasBlock

func (kves *EventSink) HasBlock(h int64) (bool, error)

func (*EventSink) IndexBlockEvents

func (kves *EventSink) IndexBlockEvents(bh types.EventDataNewBlockHeader) error

func (*EventSink) IndexTxEvents

func (kves *EventSink) IndexTxEvents(results []*abci.TxResult) error

func (*EventSink) SearchBlockEvents

func (kves *EventSink) SearchBlockEvents(ctx context.Context, q *query.Query) ([]int64, error)

func (*EventSink) SearchTxEvents

func (kves *EventSink) SearchTxEvents(ctx context.Context, q *query.Query) ([]*abci.TxResult, error)

func (*EventSink) Stop

func (kves *EventSink) Stop() error

func (*EventSink) Type

func (kves *EventSink) Type() indexer.EventSinkType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL