Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type URLGetter ¶
type URLGetter interface { // GetUrlsToScrape returns a list of URLs to scrape. // This can be called at any point so the URLGetter should be able to return the URLs quickly // And should only return URLs that should actually be scraped GetUrlsToScrape() ([]string, error) // GetHistoricalUrlsToScrape returns a list of URLs to scrape that are historical // This can be called at any point so the URLGetter should be able to return the URLs quickly // And should only return URLs that should actually be historical scraped GetHistoricalUrlsToScrape() ([]string, error) // UpdateLastScrapedTime updates the last scraped time for the given URL UpdateLastScrapedTime(url string, time time.Time, scraped bool) error // UpdateLastScrapedTimeHistorical updates the last scraped time for the given URL for historical scraping UpdateLastScrapedTimeHistorical(url string, time time.Time) error }
Click to show internal directories.
Click to hide internal directories.