Documentation ¶
Index ¶
- Constants
- func NewEventSink(connStr string, chainID string) (indexer.EventSink, *sql.DB, error)
- type EventSink
- func (es *EventSink) GetTxByHash(hash []byte) (*abci.TxResult, error)
- func (es *EventSink) HasBlock(h int64) (bool, error)
- func (es *EventSink) IndexBlockEvents(h types.EventDataNewBlockHeader) error
- func (es *EventSink) IndexTxEvents(txr []*abci.TxResult) error
- func (es *EventSink) SearchBlockEvents(ctx context.Context, q *query.Query) ([]int64, error)
- func (es *EventSink) SearchTxEvents(ctx context.Context, q *query.Query) ([]*abci.TxResult, error)
- func (es *EventSink) Stop() error
- func (es *EventSink) Type() indexer.EventSinkType
Constants ¶
View Source
const ( TableEventBlock = "block_events" TableEventTx = "tx_events" TableResultTx = "tx_results" DriverName = "postgres" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventSink ¶
type EventSink struct {
// contains filtered or unexported fields
}
EventSink is an indexer backend providing the tx/block index services.
func (*EventSink) GetTxByHash ¶
func (*EventSink) IndexBlockEvents ¶
func (es *EventSink) IndexBlockEvents(h types.EventDataNewBlockHeader) error
func (*EventSink) SearchBlockEvents ¶
func (*EventSink) SearchTxEvents ¶
func (*EventSink) Type ¶
func (es *EventSink) Type() indexer.EventSinkType
Click to show internal directories.
Click to hide internal directories.