nftofferscrapers

package
v1.1.1-rc-139 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: GPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

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) FetchOffers

func (scraper *CryptoPunksScraper) FetchOffers() error

func (*CryptoPunksScraper) GetOfferChannel

func (scraper *CryptoPunksScraper) GetOfferChannel() chan dia.NFTOffer

GetDataChannel returns the scrapers data channel.

type CryptokittiesScraper

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

func NewCryptokittiesScraper

func NewCryptokittiesScraper(rdb *models.RelDB) *CryptokittiesScraper

func (*CryptokittiesScraper) Close

func (scraper *CryptokittiesScraper) Close() error

Close closes any existing API connections

func (*CryptokittiesScraper) FetchOffers

func (scraper *CryptokittiesScraper) FetchOffers() error

func (*CryptokittiesScraper) GetOfferChannel

func (scraper *CryptokittiesScraper) GetOfferChannel() chan dia.NFTOffer

GetDataChannel returns the scrapers data channel.

type NFTOfferScraper

type NFTOfferScraper interface {
	// NFT bids should be streamed through dia.NFTBid channel.
	GetOfferChannel() chan dia.NFTOffer
	// Should fetch bids and send them to the channel.
	FetchOffers() error
}

type OfferScraper

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

Jump to

Keyboard shortcuts

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