urlgetter

package
v0.64.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 1 Imported by: 0

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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