tefas

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithWorkers

func WithWorkers(workers int) func(*Scraper)

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 NewScraper(options ...func(*Scraper)) *Scraper

func (*Scraper) GetSymbolData

func (s *Scraper) GetSymbolData(symbol string, startDate, endDate time.Time) (<-chan *scraper.SymbolPrice, error)

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

Jump to

Keyboard shortcuts

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