Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MetricsNamespace string = "op_indexer_etl"
)
Functions ¶
This section is empty.
Types ¶
type L1ETL ¶
type L1ETL struct { ETL // contains filtered or unexported fields }
func NewL1ETL ¶
func NewL1ETL(cfg Config, log log.Logger, db *database.DB, metrics Metricer, client client.Client, contracts config.L1Contracts, shutdown context.CancelCauseFunc) (*L1ETL, error)
NewL1ETL creates a new L1ETL instance that will start indexing from different starting points depending on the state of the database and the supplied start height.
type L2ETL ¶
type L2ETL struct { ETL // contains filtered or unexported fields }
type Metricer ¶
type Metricer interface { RecordInterval() (done func(err error)) RecordLatestHeight(height *big.Int) RecordEtlLatestHeight(height *big.Int) RecordIndexedHeaders(size int) RecordIndexedLog(contractAddress common.Address) }
func NewMetrics ¶
func NewMetrics(registry *prometheus.Registry, subsystem string) Metricer
Click to show internal directories.
Click to hide internal directories.