node

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package node contains the node for the explorer service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExplorerBackfiller

type ExplorerBackfiller struct {

	// ChainBackfillers is a mapping of chain IDs -> chain backfillers
	ChainBackfillers map[uint32]*backfill.ChainBackfiller
	// contains filtered or unexported fields
}

ExplorerBackfiller is a backfiller that aggregates all backfilling from ChainBackfillers.

func NewExplorerBackfiller

func NewExplorerBackfiller(consumerDB db.ConsumerDB, config config.Config, clients map[uint32]bind.ContractBackend) (*ExplorerBackfiller, error)

NewExplorerBackfiller creates a new backfiller for the explorer.

nolint:gocognit

func (ExplorerBackfiller) Backfill

func (e ExplorerBackfiller) Backfill(ctx context.Context) error

Backfill iterates over each chain backfiller and calls Backfill concurrently on each one.

Jump to

Keyboard shortcuts

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