Documentation ¶
Overview ¶
Package scraper represents a main application logic
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runner ¶
type Runner interface { // Run the runner to get pages content // based on the selector Run(ctx context.Context, selector models.RunSelector) []models.RunResult }
Runner interface
type Service ¶
Service main service representation
func NewService ¶
NewService create a new instance of the service
func (*Service) GetCategories ¶
GetCategories get all categories
func (*Service) InvalidateCache ¶
func (s *Service) InvalidateCache(sel models.RunSelector)
InvalidateCache for the provided selector
Click to show internal directories.
Click to hide internal directories.