Versions in this module Expand all Collapse all v0 v0.2.0 Dec 29, 2023 Changes in this version + func WithWorkers(workers int) func(*Scraper) + type Api struct + func NewApi(service Service, app *pocketbase.PocketBase) *Api + func (a *Api) SetupRoutes(g *echo.Group) + type Scraper struct + func NewScraper(options ...func(*Scraper)) *Scraper + func (s *Scraper) GetSymbolData(symbol string, startDate, endDate time.Time) (<-chan *scraper.SymbolPrice, error) + type Service interface + GetAndSaveFundData func(fundCode, currency string, startDate, endDate time.Time) ([]*models.Record, error) + GetScrape func(fundCode, currenct string, startDate, endDate time.Time) (*models.Record, error) + func NewService(app *pocketbase.PocketBase, scraper scraper.Scraper) Service