nftbidscrapers

package
v1.4.186 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: GPL-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const (
	CryptoPunkRefreshDelay = time.Second * 60 * 1
)

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