Documentation ¶
Index ¶
- func InitScrapper(lc fx.Lifecycle, repo repository.Repository, clients api.ExchangeClients)
- func ScrapeExchange(ctx context.Context, repo repository.Repository, ...) error
- func StartScraper(ctx context.Context, repo repository.Repository, ...) error
- func StartScrapperCron(ctx context.Context, repo repository.Repository, ...) (*cron.Cron, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitScrapper ¶
func InitScrapper( lc fx.Lifecycle, repo repository.Repository, clients api.ExchangeClients, )
func ScrapeExchange ¶
func ScrapeExchange( ctx context.Context, repo repository.Repository, client models.ExchangeAPIClient, startTime time.Time, endTime time.Time, ) error
func StartScraper ¶
func StartScraper( ctx context.Context, repo repository.Repository, clients []models.ExchangeAPIClient) error
Get Prices from last_sync.last_sync to time.now()
func StartScrapperCron ¶
func StartScrapperCron( ctx context.Context, repo repository.Repository, clients []models.ExchangeAPIClient, ) (*cron.Cron, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.