Documentation ¶
Overview ¶
scraper holds all the scraping logic. All subpackage must implement “scraper.ScrapeIterator“
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Finish = errors.New("end of scrape queue")
Functions ¶
This section is empty.
Types ¶
type ScrapeIterator ¶
type ScrapeIterator interface { // Returns the next data. If there's no more data to fetch. “scraper.Finish“ error will be returned. Next(ctx context.Context, url string) (data *ScrapData, err error) }
ScrapeIterator is an interface to fetch data queue in the implementor. Implementor must return Finish error if there's no more data to fetch.
Click to show internal directories.
Click to hide internal directories.