Documentation
¶
Overview ¶
Package scrape defines the Scraper interface for extracting job offer data from external sources. Implementations accept a query and return structured offer parameters for database insertion. Includes a mock implementation for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Mock = &mock{} MockWithErr = &mock{mockErr: fmt.Errorf("error")} MockWithDelay = &mock{delay: 150 * time.Millisecond} MockList = List{"Mock": Mock} )
Functions ¶
This section is empty.
Types ¶
type Scraper ¶
type Scraper interface {
Scrape(context.Context, *db.GetQueryScraperRow) ([]db.CreateOfferParams, error)
}
Scraper defines the interface expected from all the scrapers.
Click to show internal directories.
Click to hide internal directories.