Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BestBlockTracker         bestblock.Config
	TaskManager              taskmanager.Config
	Scraper                  scraper.Config
	PostgresConnectionString string
	Features                 Features
}

type Core

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

func New

func New(config Config) *Core

func (*Core) AddTodo

func (c *Core) AddTodo(block int64) error

func (*Core) Close

func (c *Core) Close() error

func (*Core) DB

func (c *Core) DB() *sql.DB

func (*Core) ExitDelayed

func (c *Core) ExitDelayed()

func (*Core) IsPaused

func (c *Core) IsPaused() bool

func (*Core) Metrics

func (c *Core) Metrics() *metrics.Provider

func (*Core) Pause

func (c *Core) Pause()

func (*Core) Reset

func (c *Core) Reset() error

func (*Core) Resume

func (c *Core) Resume()

func (*Core) Run

func (c *Core) Run()

type FeatureLag

type FeatureLag struct {
	Enabled bool
	Value   int64
}

type Features

type Features struct {
	Backfill    bool
	Lag         FeatureLag
	Automigrate bool
	Uncles      bool
}