blockscrapers

package
v1.4.1-rc-161 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: GPL-2.0 Imports: 10 Imported by: 1

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