tiler

package
v0.0.0-...-620b3f8 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node interface {
	ID() string
	GetTile(ctx context.Context, hash common.Hash) ([][]byte, error)
	SubscribeNewHead(sink chan *types.Header) event.Subscription
	Logger() log.Logger
}

Node is the interface of backend node

type Tiler

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

Tiler is responsible for keeping track of pending state and chain crawl jobs and distributing them to backends that have the dataset available.

func NewTiler

func NewTiler(db ethdb.Database, removeNode func(string) error) *Tiler

NewTiler creates a tile crawl Tiler.

func (*Tiler) GetTile

func (t *Tiler) GetTile(root common.Hash) (*etype.Tile, common.Hash)

func (*Tiler) RegisterNode

func (t *Tiler) RegisterNode(n Node)

RegisterNode starts tracking a new Ethereum backend to delegate tasks to.

func (*Tiler) Start

func (t *Tiler) Start()

func (*Tiler) Stop

func (t *Tiler) Stop()

Jump to

Keyboard shortcuts

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