core

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: MIT Imports: 11 Imported by: 0

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 added in v1.0.0

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

func (*Core) Close

func (c *Core) Close() error

func (*Core) DB added in v1.0.0

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

func (*Core) ExitDelayed added in v1.0.0

func (c *Core) ExitDelayed()

func (*Core) IsPaused added in v1.0.0

func (c *Core) IsPaused() bool

func (*Core) Metrics added in v1.0.0

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

func (*Core) Pause added in v1.0.0

func (c *Core) Pause()

func (*Core) Reset added in v1.0.0

func (c *Core) Reset() error

func (*Core) Resume added in v1.0.0

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
}

Jump to

Keyboard shortcuts

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