dburlgetter

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBURLGetter

type DBURLGetter struct {
	StatusPageCache *cache.Cache
	// contains filtered or unexported fields
}

func NewDBURLGetter

func NewDBURLGetter(logger *zap.Logger, client *db.DbClient) *DBURLGetter

func (*DBURLGetter) GetHistoricalUrlsToScrape

func (s *DBURLGetter) GetHistoricalUrlsToScrape() ([]string, error)

func (*DBURLGetter) GetUrlsToScrape

func (s *DBURLGetter) GetUrlsToScrape() ([]string, error)

func (*DBURLGetter) Start

func (s *DBURLGetter) Start()

func (*DBURLGetter) UpdateLastScrapedTime

func (s *DBURLGetter) UpdateLastScrapedTime(url string, time time.Time, scraped bool) error

func (*DBURLGetter) UpdateLastScrapedTimeHistorical

func (s *DBURLGetter) UpdateLastScrapedTimeHistorical(url string, time time.Time) error

func (*DBURLGetter) UpdateStatusPageCache

func (s *DBURLGetter) UpdateStatusPageCache()

Jump to

Keyboard shortcuts

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