fetchers

package
v0.4.46 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GOGIdToSteamApp added in v0.3.50

func GOGIdToSteamApp(gogId string, rxa kvas.ReduxAssets) uint32

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 NewKvasIndexSetter

func NewKvasIndexSetter(pt vangogh_local_data.ProductType, ids []string) (*kvasIndexSetter, 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

type SteamUrlProvider added in v0.3.50

type SteamUrlProvider struct {
	// contains filtered or unexported fields
}

func (*SteamUrlProvider) DefaultSourceUrl added in v0.3.50

func (sup *SteamUrlProvider) DefaultSourceUrl(gogId string) *url.URL

Jump to

Keyboard shortcuts

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