Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithWorkers ¶
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func NewApi ¶
func NewApi(service Service, app *pocketbase.PocketBase) *Api
func (*Api) SetupRoutes ¶
func (a *Api) SetupRoutes(g *echo.Group)
type Scraper ¶
type Scraper struct {
// contains filtered or unexported fields
}
func NewScraper ¶
func (*Scraper) GetSymbolData ¶
type Service ¶
type Service interface { GetAndSaveFundData(fundCode, currency string, startDate, endDate time.Time) ([]*models.Record, error) GetScrape(fundCode, currenct string, startDate, endDate time.Time) (*models.Record, error) }
func NewService ¶
func NewService(app *pocketbase.PocketBase, scraper scraper.Scraper) Service
Click to show internal directories.
Click to hide internal directories.