Documentation ¶
Index ¶
- func Items(ids []string, pt vangogh_local_data.ProductType, mt gog_integration.Media, ...) error
- func NewKvasIndexSetter(pt vangogh_local_data.ProductType, mt gog_integration.Media, ids []string) (*kvasIndexSetter, error)
- func Pages(pt vangogh_local_data.ProductType, mt gog_integration.Media, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Items ¶
func Items( ids []string, pt vangogh_local_data.ProductType, mt gog_integration.Media, httpClient *http.Client) error
Items fetches all individual data items (details, api-products-v1/v2) using provided ids
func NewKvasIndexSetter ¶
func NewKvasIndexSetter(pt vangogh_local_data.ProductType, mt gog_integration.Media, ids []string) (*kvasIndexSetter, error)
func Pages ¶
func Pages(pt vangogh_local_data.ProductType, mt gog_integration.Media, 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.
Click to show internal directories.
Click to hide internal directories.