nftbidscrapers

package
v1.3.6-rc-101 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CryptoPunkRefreshDelay = time.Minute * 60 * 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BidScraper

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

type CryptoPunksScraper

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

func NewCryptoPunksScraper

func NewCryptoPunksScraper(rdb *models.RelDB) *CryptoPunksScraper

func (*CryptoPunksScraper) Close

func (scraper *CryptoPunksScraper) Close() error

Close closes any existing API connections

func (*CryptoPunksScraper) FetchBids

func (scraper *CryptoPunksScraper) FetchBids() error

func (*CryptoPunksScraper) GetBidChannel

func (scraper *CryptoPunksScraper) GetBidChannel() chan dia.NFTBid

GetDataChannel returns the scrapers data channel.

type NFTBidScraper

type NFTBidScraper interface {
	// NFT bids should be streamed through dia.NFTBid channel.
	GetBidChannel() chan dia.NFTBid
	// Should fetch bids and send them to the channel.
	FetchBids() error
}

Jump to

Keyboard shortcuts

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