Documentation ¶
Index ¶
- func GetContractABI(std indexer.Standard) (*abi.ABI, error)
- func GetContractTopics(std indexer.Standard) [][]common.Hash
- type ErrIndexing
- type Indexer
- func (i *Indexer) Background(syncrate int) error
- func (e *Indexer) Close()
- func (i *Indexer) EventsFromBlock(ev *indexer.Event, blk *block) error
- func (i *Indexer) EventsFromLogStream(ctx context.Context, quitAck chan error, ev *indexer.Event) error
- func (i *Indexer) FilterQueryFromEvent(ev *indexer.Event) *ethereum.FilterQuery
- func (i *Indexer) IndexERC20From(contract string, from int64) error
- func (i *Indexer) ListenBackground(ctx context.Context) error
- func (i *Indexer) Process(evs []*indexer.Event, blk *block) error
- func (i *Indexer) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrIndexing ¶
type ErrIndexing error
var (
ErrIndexingRecoverable ErrIndexing = errors.New("error indexing recoverable") // an error occurred while indexing but it is not fatal
)
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
func (*Indexer) Background ¶
Background starts an indexer service in the background
func (*Indexer) EventsFromBlock ¶
func (*Indexer) EventsFromLogStream ¶
func (*Indexer) FilterQueryFromEvent ¶
func (*Indexer) IndexERC20From ¶
func (*Indexer) ListenBackground ¶
ListenBackground starts an indexer service that listens for blocks in the background
Click to show internal directories.
Click to hide internal directories.