fetchers

package
v0.5.80 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Items

func Items(
	ids []string,
	pt vangogh_local_data.ProductType,
	httpClient *http.Client) error

Items fetches all individual data items (details, api-products-v1/v2) using provided ids

func NewIndexSetter added in v0.4.79

func NewIndexSetter(pt vangogh_local_data.ProductType, ids []string) (dolo.IndexSetter, error)

func Pages

func Pages(pt vangogh_local_data.ProductType, since int64, httpClient *http.Client, tpw nod.TotalProgressWriter) error

Pages fetches all paged product type pages concurrently (using dolo.GetSet). To do that it downloads the first page, decodes that to get TotalPages, then constructs a slice of URLs and page ids to download all the remaining pages from 2nd to TotalPages using kvas index setter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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