blockscrapers

package
v0.0.0-...-3beb7e2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockScraper

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

type BlockScraperInterface

type BlockScraperInterface interface {
	// NFT data should be streamed through dia.NFT channel.
	GetDataChannel() chan dia.BlockData
	// Should fetch nft data and send it to the channel.
	FetchData() error
}

type EthereumScraper

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

func NewEthereumScraper

func NewEthereumScraper(rdb *models.RelDB) *EthereumScraper

func (*EthereumScraper) Close

func (scraper *EthereumScraper) Close() error

Close closes any existing API connections

func (*EthereumScraper) FetchData

func (scraper *EthereumScraper) FetchData() error

func (*EthereumScraper) GetDataChannel

func (scraper *EthereumScraper) GetDataChannel() chan dia.BlockData

Jump to

Keyboard shortcuts

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