Documentation ¶
Index ¶
- Constants
- Variables
- func AbsAtomFeedPath() (string, error)
- func AbsCookiePath() (string, error)
- func AbsDownloadDirFromRel(p string) (string, error)
- func AbsImagesDirByImageId(imageId string) (string, error)
- func AbsItemPath(path string) (string, error)
- func AbsLocalChecksumPath(p string) (string, error)
- func AbsLocalImagePath(imageId string) (string, error)
- func AbsLocalProductTypeDir(pt ProductType) (string, error)
- func AbsProductDownloadsDir(slug string) (string, error)
- func AbsSkipListPath() (string, error)
- func AccountStatusProperties() []string
- func AddLocalTags(ids, tags []string, tpw nod.TotalProgressWriter) error
- func AddTags(httpClient *http.Client, ids, tags []string, tpw nod.TotalProgressWriter) error
- func AddToLocalWishlist(ids []string, tpw nod.TotalProgressWriter) ([]string, error)
- func AdvancedProductProperties() []string
- func AllProperties() []string
- func AllTextProperties() []string
- func AvailabilityProperties() []string
- func ComputedProperties() []string
- func CreateTag(httpClient *http.Client, tagName string) error
- func DehydratedImagesProperties() []string
- func DeleteTag(httpClient *http.Client, tagName, tagId string) error
- func DiffLocalTags(id string, newTags []string) (add []string, rem []string, err error)
- func DiffTags(id string, newTags []string) (add []string, rem []string, err error)
- func DigestibleProperties() []string
- func EnginesProperties() []string
- func ExternalDataSourcesProperties() []string
- func ExtractDescItems(desc string) []string
- func ExtractGameLinks(desc string) []string
- func FlagFromUrl(u *url.URL, arg string) bool
- func GetProperties(id string, reader *ProductReader, properties []string) (propValues map[string][]string, err error)
- func IdsFromUrl(u *url.URL) ([]string, error)
- func ImageIdProperties() []string
- func ImagePropertyUrls(imageIds []string, it ImageType) ([]*url.URL, error)
- func ImageTypeDehydratedModifiedProperty(it ImageType) string
- func ImageTypeDehydratedProperty(it ImageType) string
- func ImageTypeDehydrationSamples(it ImageType) int
- func ImageTypeRepColorProperty(it ImageType) string
- func IsArrayProduct(pt ProductType) bool
- func IsFastPageFetchProduct(pt ProductType) bool
- func IsGOGArrayProduct(pt ProductType) bool
- func IsGOGDetailProduct(pt ProductType) bool
- func IsGOGPagedProduct(pt ProductType) bool
- func IsGOGProduct(pt ProductType) bool
- func IsGetItemsSupported(pt ProductType) bool
- func IsHLTBArrayProduct(pt ProductType) bool
- func IsHLTBDetailProduct(pt ProductType) bool
- func IsHLTBProduct(pt ProductType) bool
- func IsImageRequiresAuth(it ImageType) bool
- func IsImageTypeDehydrationSupported(it ImageType) bool
- func IsImageTypeSupported(pt ProductType, it ImageType) bool
- func IsPCGWDetailProduct(pt ProductType) bool
- func IsPCGWProduct(pt ProductType) bool
- func IsProductRequiresAuth(pt ProductType) bool
- func IsProtonDBDetailProduct(pt ProductType) bool
- func IsProtonDBProduct(pt ProductType) bool
- func IsSteamArrayProduct(pt ProductType) bool
- func IsSteamDetailProduct(pt ProductType) bool
- func IsSteamProduct(pt ProductType) bool
- func IsSupportedProperty(pt ProductType, property string) bool
- func IsValidDownloadType(dt DownloadType) bool
- func IsValidImageType(it ImageType) bool
- func IsValidOperatingSystem(os OperatingSystem) bool
- func IsValidProductType(pt ProductType) bool
- func IsValidProperty(property string) bool
- func LocalDownloadDirs() (map[string]bool, error)
- func LocalImageIds() (map[string]bool, error)
- func LocalSlugDownloads(slug string) (map[string]bool, error)
- func LongTextProperties() []string
- func MapDownloads(ids []string, rdx kevlar.ReadableRedux, operatingSystems []OperatingSystem, ...) error
- func MoveToRecycleBin(typeRootDir, absPath string) error
- func NewReduxReader(properties ...string) (kevlar.ReadableRedux, error)
- func NewReduxWriter(properties ...string) (kevlar.WriteableRedux, error)
- func PriceProperties() []string
- func PrintParams(ids []string, operatingSystems []OperatingSystem, langCodes []string, ...)
- func PropertiesFromUrl(u *url.URL) []string
- func PropertyFromImageType(it ImageType) string
- func PropertyFromUrl(u *url.URL) string
- func PropertyListsFromIdSet(ids []string, propertyFilter map[string][]string, properties []string, ...) (map[string][]string, error)
- func RecycleBinDirs() (map[string]bool, error)
- func RecycleBinFiles() (map[string]bool, error)
- func ReduxProperties() []string
- func RelProductDownloadsDir(slug string) (string, error)
- func RemoteChecksumPath(p string) string
- func RemoveFromLocalWishlist(ids []string, tpw nod.TotalProgressWriter) ([]string, error)
- func RemoveLocalTags(ids, tags []string, tpw nod.TotalProgressWriter) error
- func RemoveTags(httpClient *http.Client, ids, tags []string, tpw nod.TotalProgressWriter) error
- func SinceFromUrl(u *url.URL) (int64, error)
- func SizeToEstimatedBytes(size string) int
- func SortStrIntMap(m map[string]int, desc bool) []string
- func StatusValidationResultsProperties() []string
- func SteamGridImageFilename(shortcutId uint32, imageType ImageType) string
- func SupportedPropertiesOnly(pt ProductType, properties []string) []string
- func SyncProperties() []string
- func TagIdByName(tagName string) (string, error)
- func TextProperties() []string
- func Updates(since int64) (map[string]map[string]bool, error)
- func UrlProperties() []string
- func ValueFromUrl(u *url.URL, arg string) string
- func ValuesFromUrl(u *url.URL, arg string) []string
- func VideoProperties() []string
- type Download
- type DownloadType
- type DownloadsList
- type DownloadsListProcessor
- type GOGUrlProvider
- type HLTBUrlProvider
- type ImageType
- type ManualUrlStatus
- type OperatingSystem
- type PCGWUrlProvider
- type ProductReader
- func (pr *ProductReader) AccountPage(page string) (accountPage *gog_integration.AccountPage, err error)
- func (pr *ProductReader) AccountProduct(id string) (accountProduct *gog_integration.AccountProduct, err error)
- func (pr *ProductReader) ApiProductV1(id string) (apiProductV1 *gog_integration.ApiProductV1, err error)
- func (pr *ProductReader) ApiProductV2(id string) (apiProductV2 *gog_integration.ApiProductV2, err error)
- func (pr *ProductReader) CatalogPage(page string) (catalogPage *gog_integration.CatalogPage, err error)
- func (pr *ProductReader) CatalogProduct(id string) (catalogProduct *gog_integration.CatalogProduct, err error)
- func (pr *ProductReader) CreatedAfter(timestamp int64) ([]string, error)
- func (pr *ProductReader) CreatedOrUpdatedAfter(timestamp int64) ([]string, error)
- func (pr *ProductReader) Cut(id string) (bool, error)
- func (pr *ProductReader) Details(id string) (details *gog_integration.Details, err error)
- func (pr *ProductReader) GamesDbProduct(id string) (gdp *gog_integration.GamesDbProduct, err error)
- func (pr *ProductReader) Get(id string) (io.ReadCloser, error)
- func (pr *ProductReader) GetFromStorage(id string) (io.ReadCloser, error)
- func (pr *ProductReader) HLTBData(id string) (data *hltb_integration.Data, err error)
- func (pr *ProductReader) HLTBRootPage() (*hltb_integration.RootPage, error)
- func (pr *ProductReader) Has(id string) (bool, error)
- func (pr *ProductReader) IsCurrent() (bool, int64)
- func (pr *ProductReader) IsUpdatedAfter(id string, timestamp int64) (bool, error)
- func (pr *ProductReader) Keys() ([]string, error)
- func (pr *ProductReader) Licences() (licences *gog_integration.Licences, err error)
- func (pr *ProductReader) ModTime(id string) (int64, error)
- func (pr *ProductReader) Order(id string) (order *gog_integration.Order, err error)
- func (pr *ProductReader) OrderPage(page string) (orderPage *gog_integration.OrderPage, err error)
- func (pr *ProductReader) PCGWEngine(id string) (e *pcgw_integration.Engine, err error)
- func (pr *ProductReader) PCGWExternalLinks(id string) (pel *pcgw_integration.ParseExternalLinks, err error)
- func (pr *ProductReader) PCGWPageId(id string) (ps *pcgw_integration.PageId, err error)
- func (pr *ProductReader) ProductType() ProductType
- func (pr *ProductReader) ProductsGetter(page string) (productsGetter gog_integration.ProductsGetter, err error)
- func (pr *ProductReader) ProtonDBSummary(id string) (summary *protondb_integration.Summary, err error)
- func (pr *ProductReader) ReadValue(key string) (interface{}, error)
- func (pr *ProductReader) Set(id string, data io.Reader) error
- func (pr *ProductReader) SteamAppList() (steamAppListResponse *steam_integration.GetAppListResponse, err error)
- func (pr *ProductReader) SteamAppReviews(id string) (steamAppReviews *steam_integration.AppReviews, err error)
- func (pr *ProductReader) SteamDeckAppCompatibilityReport(id string) (deckAppCompatibilityReport *steam_integration.DeckAppCompatibilityReport, ...)
- func (pr *ProductReader) SteamGetAppNewsResponse(id string) (steamAppNewsResponse *steam_integration.GetNewsForAppResponse, err error)
- func (pr *ProductReader) SteamStorePage(id string) (*steam_integration.StorePage, error)
- func (pr *ProductReader) UpdatedAfter(timestamp int64) ([]string, error)
- func (pr *ProductReader) UserWishlist() (userWishlist *gog_integration.UserWishlist, err error)
- func (pr *ProductReader) UserWishlistProduct(id string) (userWishlistProduct string, err error)
- type ProductType
- func FastPageFetchProducts() []ProductType
- func GOGArrayProducts() []ProductType
- func GOGDetailProducts() []ProductType
- func GOGPagedProducts() []ProductType
- func GOGRemoteProducts() []ProductType
- func HLTBArrayProducts() []ProductType
- func HLTBDetailProducts() []ProductType
- func HLTBRemoteProducts() []ProductType
- func LocalProducts() []ProductType
- func MainProductTypes(pt ProductType) []ProductType
- func PCGWDetailProducts() []ProductType
- func PCGWRemoteProducts() []ProductType
- func ParseProductType(productType string) ProductType
- func ProductTypeFromUrl(u *url.URL) ProductType
- func ProductTypesSupportingImageType(imageType ImageType) []ProductType
- func ProtonDBDetailProducts() []ProductType
- func ProtonDBRemoteProducts() []ProductType
- func RemoteProducts() []ProductType
- func SplitProductType(pt ProductType) ProductType
- func SteamArrayProducts() []ProductType
- func SteamDetailProducts() []ProductType
- func SteamRemoteProducts() []ProductType
- type SteamUrlProvider
- type TheoDownloadLink
- type TheoDownloadLinks
- type TheoImages
- type TheoMetadata
- type UrlProvider
- type ValidationChunk
- type ValidationFile
- type ValidationResult
Constants ¶
View Source
const ( Backups pathways.AbsDir = "backups" Metadata pathways.AbsDir = "metadata" Input pathways.AbsDir = "input" Output pathways.AbsDir = "output" Images pathways.AbsDir = "images" Items pathways.AbsDir = "items" Downloads pathways.AbsDir = "downloads" Checksums pathways.AbsDir = "checksums" RecycleBin pathways.AbsDir = "recycle_bin" Logs pathways.AbsDir = "logs" )
View Source
const ( Redux pathways.RelDir = "_redux" DLCs pathways.RelDir = "dlc" Extras pathways.RelDir = "extras" )
View Source
const ( DefaultSort = TitleProperty DefaultDesc = false )
View Source
const ( IdProperty = "id" TitleProperty = "title" DevelopersProperty = "developers" PublishersProperty = "publishers" ImageProperty = "image" VerticalImageProperty = "vertical-image" ScreenshotsProperty = "screenshots" HeroProperty = "hero" LogoProperty = "logo" IconProperty = "icon" IconSquareProperty = "icon-square" BackgroundProperty = "background" RatingProperty = "rating" AggregatedRatingProperty = "aggregated-rating" IncludesGamesProperty = "includes-games" IsIncludedByGamesProperty = "is-included-by-games" RequiresGamesProperty = "requires-games" IsRequiredByGamesProperty = "is-required-by-games" GenresProperty = "genres" StoreTagsProperty = "store-tags" FeaturesProperty = "features" SeriesProperty = "series" ThemesProperty = "themes" GameModesProperty = "game-modes" TagIdProperty = "tag" TagNameProperty = "tag-name" VideoIdProperty = "video-id" VideoTitleProperty = "video-title" VideoDurationProperty = "video-duration" VideoErrorProperty = "video-error" OperatingSystemsProperty = "os" LanguageCodeProperty = "lang-code" DownloadTypeProperty = "download-type" NoPatchesProperty = "no-patches" LanguageNameProperty = "lang-name" NativeLanguageNameProperty = "native-lang-name" SlugProperty = "slug" GOGReleaseDateProperty = "gog-release-date" GOGOrderDateProperty = "gog-order-date" GlobalReleaseDateProperty = "global-release-date" TypesProperty = "types" LocalManualUrlProperty = "local-manual-url" ManualUrlStatusProperty = "manual-url-status" ManualUrlValidationResultProperty = "manual-url-validation-result" ProductValidationResultProperty = "product-validation-result" ManualUrlGeneratedChecksumProperty = "manual-url-generated-checksum" DownloadStatusErrorProperty = "download-status-error" StoreUrlProperty = "store-url" ForumUrlProperty = "forum-url" SupportUrlProperty = "support-url" ChangelogProperty = "changelog" DescriptionOverviewProperty = "description-overview" DescriptionFeaturesProperty = "description-features" AdditionalRequirementsProperty = "additional-requirements" CopyrightsProperty = "copyrights" WishlistedProperty = "wishlisted" OwnedProperty = "owned" ProductTypeProperty = "product-type" InDevelopmentProperty = "in-development" PreOrderProperty = "pre-order" ComingSoonProperty = "coming-soon" BasePriceProperty = "base-price" PriceProperty = "price" IsFreeProperty = "is-free" IsDiscountedProperty = "is-discounted" DiscountPercentageProperty = "discount-percentage" SteamAppIdProperty = "steam-app-id" LocalTagsProperty = "local-tags" SortProperty = "sort" DescendingProperty = "desc" SteamReviewScoreDescProperty = "steam-review-score-desc" SteamTagsProperty = "steam-tags" SteamDeckAppCompatibilityCategoryProperty = "steam-deck-app-compatibility-category" DehydratedImageProperty = "dehydrated-image" DehydratedImageModifiedProperty = "dehydrated-image-modified" DehydratedVerticalImageProperty = "dehydrated-vertical-image" DehydratedVerticalImageModifiedProperty = "dehydrated-vertical-image-modified" RepImageColorProperty = "rep-image-color" RepVerticalImageColorProperty = "rep-vertical-image-color" SyncEventsProperty = "sync-events" LastSyncUpdatesProperty = "last-sync-updates" PCGWPageIdProperty = "pcgw-page-id" HLTBIdProperty = "hltb-id" HLTBBuildIdProperty = "hltb-next-build" HLTBHoursToCompleteMainProperty = "hltb-comp-main" HLTBHoursToCompletePlusProperty = "hltb-comp-plus" HLTBHoursToComplete100Property = "hltb-comp-100" HLTBReviewScoreProperty = "hltb-review-score" HLTBGenresProperty = "hltb-genres" HLTBPlatformsProperty = "hltb-platforms" IGDBIdProperty = "igdb-id" StrategyWikiIdProperty = "strategy-wiki-id" MobyGamesIdProperty = "moby-games-id" WikipediaIdProperty = "wikipedia-id" WineHQIdProperty = "winehq-id" VNDBIdProperty = "vndb-id" IGNWikiSlugProperty = "ign-wiki-slug" EnginesProperty = "engines" EnginesBuildsProperty = "engines-builds" ProtonDBTierProperty = "protondb-tier" ProtonDBConfidenceProperty = "protondb-confidence" )
View Source
const ( // property values TrueValue = "true" FalseValue = "false" )
View Source
const ( SyncStartKey = "sync-start" SyncCompleteKey = "sync-complete" )
View Source
const DefaultVangoghRootDir = "/var/lib/vangogh"
Variables ¶
View Source
var AllAbsDirs = []pathways.AbsDir{ Backups, Metadata, Input, Output, Images, Items, Downloads, Checksums, RecycleBin, Logs, }
Functions ¶
func AbsAtomFeedPath ¶
func AbsCookiePath ¶
func AbsDownloadDirFromRel ¶
func AbsImagesDirByImageId ¶
func AbsItemPath ¶
func AbsLocalChecksumPath ¶
func AbsLocalImagePath ¶
func AbsLocalProductTypeDir ¶
func AbsLocalProductTypeDir(pt ProductType) (string, error)
func AbsProductDownloadsDir ¶
func AbsSkipListPath ¶
func AccountStatusProperties ¶
func AccountStatusProperties() []string
func AddLocalTags ¶
func AddLocalTags(ids, tags []string, tpw nod.TotalProgressWriter) error
func AddToLocalWishlist ¶
func AddToLocalWishlist( ids []string, tpw nod.TotalProgressWriter) ([]string, error)
func AdvancedProductProperties ¶
func AdvancedProductProperties() []string
func AllProperties ¶
func AllProperties() []string
func AllTextProperties ¶
func AllTextProperties() []string
func AvailabilityProperties ¶
func AvailabilityProperties() []string
func ComputedProperties ¶
func ComputedProperties() []string
func DehydratedImagesProperties ¶
func DehydratedImagesProperties() []string
func DiffLocalTags ¶
func DigestibleProperties ¶
func DigestibleProperties() []string
func EnginesProperties ¶
func EnginesProperties() []string
func ExternalDataSourcesProperties ¶
func ExternalDataSourcesProperties() []string
func ExtractDescItems ¶
func ExtractGameLinks ¶
func GetProperties ¶
func ImageIdProperties ¶
func ImageIdProperties() []string
func ImagePropertyUrls ¶
func IsArrayProduct ¶
func IsArrayProduct(pt ProductType) bool
func IsFastPageFetchProduct ¶
func IsFastPageFetchProduct(pt ProductType) bool
func IsGOGArrayProduct ¶
func IsGOGArrayProduct(pt ProductType) bool
func IsGOGDetailProduct ¶
func IsGOGDetailProduct(pt ProductType) bool
func IsGOGPagedProduct ¶
func IsGOGPagedProduct(pt ProductType) bool
func IsGOGProduct ¶
func IsGOGProduct(pt ProductType) bool
func IsGetItemsSupported ¶
func IsGetItemsSupported(pt ProductType) bool
func IsHLTBArrayProduct ¶
func IsHLTBArrayProduct(pt ProductType) bool
func IsHLTBDetailProduct ¶
func IsHLTBDetailProduct(pt ProductType) bool
func IsHLTBProduct ¶
func IsHLTBProduct(pt ProductType) bool
func IsImageRequiresAuth ¶
func IsImageTypeSupported ¶
func IsImageTypeSupported(pt ProductType, it ImageType) bool
func IsPCGWDetailProduct ¶
func IsPCGWDetailProduct(pt ProductType) bool
func IsPCGWProduct ¶
func IsPCGWProduct(pt ProductType) bool
func IsProductRequiresAuth ¶
func IsProductRequiresAuth(pt ProductType) bool
func IsProtonDBDetailProduct ¶
func IsProtonDBDetailProduct(pt ProductType) bool
func IsProtonDBProduct ¶
func IsProtonDBProduct(pt ProductType) bool
func IsSteamArrayProduct ¶
func IsSteamArrayProduct(pt ProductType) bool
func IsSteamDetailProduct ¶
func IsSteamDetailProduct(pt ProductType) bool
func IsSteamProduct ¶
func IsSteamProduct(pt ProductType) bool
func IsSupportedProperty ¶
func IsSupportedProperty(pt ProductType, property string) bool
func IsValidDownloadType ¶
func IsValidDownloadType(dt DownloadType) bool
func IsValidImageType ¶
func IsValidOperatingSystem ¶
func IsValidOperatingSystem(os OperatingSystem) bool
func IsValidProductType ¶
func IsValidProductType(pt ProductType) bool
func IsValidProperty ¶
func LocalDownloadDirs ¶
func LocalImageIds ¶
func LongTextProperties ¶
func LongTextProperties() []string
func MapDownloads ¶
func MapDownloads( ids []string, rdx kevlar.ReadableRedux, operatingSystems []OperatingSystem, langCodes []string, downloadTypes []DownloadType, excludePatches bool, dlProcessor DownloadsListProcessor, tpw nod.TotalProgressWriter) error
func MoveToRecycleBin ¶
func NewReduxReader ¶
func NewReduxReader(properties ...string) (kevlar.ReadableRedux, error)
func NewReduxWriter ¶
func NewReduxWriter(properties ...string) (kevlar.WriteableRedux, error)
func PriceProperties ¶
func PriceProperties() []string
func PrintParams ¶
func PrintParams( ids []string, operatingSystems []OperatingSystem, langCodes []string, downloadTypes []DownloadType, noPatches bool)
func PropertiesFromUrl ¶
func PropertyFromImageType ¶
func PropertyFromUrl ¶
func PropertyListsFromIdSet ¶
func RecycleBinDirs ¶
func RecycleBinFiles ¶
func ReduxProperties ¶
func ReduxProperties() []string
func RelProductDownloadsDir ¶
func RemoteChecksumPath ¶
func RemoveFromLocalWishlist ¶
func RemoveFromLocalWishlist( ids []string, tpw nod.TotalProgressWriter) ([]string, error)
func RemoveLocalTags ¶
func RemoveLocalTags(ids, tags []string, tpw nod.TotalProgressWriter) error
func RemoveTags ¶
func SizeToEstimatedBytes ¶
func StatusValidationResultsProperties ¶
func StatusValidationResultsProperties() []string
func SteamGridImageFilename ¶
func SupportedPropertiesOnly ¶
func SupportedPropertiesOnly(pt ProductType, properties []string) []string
func SyncProperties ¶
func SyncProperties() []string
func TagIdByName ¶
func TextProperties ¶
func TextProperties() []string
func UrlProperties ¶
func UrlProperties() []string
func VideoProperties ¶
func VideoProperties() []string
Types ¶
type Download ¶
type Download struct { ManualUrl string ProductTitle string Name string Version string Date string OS OperatingSystem LanguageCode string Type DownloadType EstimatedBytes int }
type DownloadType ¶
type DownloadType int
const ( AnyDownloadType DownloadType = iota Installer Movie DLC Extra )
func AllDownloadTypes ¶
func AllDownloadTypes() []DownloadType
func DownloadTypesFromUrl ¶
func DownloadTypesFromUrl(u *url.URL) []DownloadType
func ParseDownloadType ¶
func ParseDownloadType(downloadType string) DownloadType
func ParseManyDownloadTypes ¶
func ParseManyDownloadTypes(dtStrings []string) []DownloadType
func (DownloadType) String ¶
func (dt DownloadType) String() string
type DownloadsList ¶
type DownloadsList []Download
func FromDetails ¶
func FromDetails(det *gog_integration.Details, rdx kevlar.ReadableRedux) (DownloadsList, error)
func (DownloadsList) Only ¶
func (list DownloadsList) Only( operatingSystems []OperatingSystem, langCodes []string, downloadTypes []DownloadType, excludePatches bool) DownloadsList
func (DownloadsList) TotalBytesEstimate ¶
func (list DownloadsList) TotalBytesEstimate() int
func (DownloadsList) TotalGBsEstimate ¶
func (list DownloadsList) TotalGBsEstimate() float64
type DownloadsListProcessor ¶
type DownloadsListProcessor interface {
Process(id string, slug string, downloadsList DownloadsList) error
}
type GOGUrlProvider ¶
type GOGUrlProvider struct {
// contains filtered or unexported fields
}
func NewGOGUrlProvider ¶
func NewGOGUrlProvider(pt ProductType) (*GOGUrlProvider, error)
type HLTBUrlProvider ¶
type HLTBUrlProvider struct {
// contains filtered or unexported fields
}
func NewHLTBUrlProvider ¶
func NewHLTBUrlProvider(pt ProductType, rdx kevlar.ReadableRedux) (*HLTBUrlProvider, error)
func (*HLTBUrlProvider) GOGIdToHLTBId ¶
func (hup *HLTBUrlProvider) GOGIdToHLTBId(gogId string) string
type ImageType ¶
type ImageType int
func AllImageTypes ¶
func AllImageTypes() []ImageType
func ImageTypeFromProperty ¶
func ImageTypesDehydration ¶
func ImageTypesDehydration() []ImageType
func ImageTypesFromUrl ¶
func ParseImageType ¶
type ManualUrlStatus ¶
type ManualUrlStatus int
const ( ManualUrlStatusUnknown ManualUrlStatus = iota ManualUrlQueued ManualUrlDownloaded ManualUrlValidated )
func ParseManualUrlStatus ¶
func ParseManualUrlStatus(muss string) ManualUrlStatus
func (ManualUrlStatus) String ¶
func (mus ManualUrlStatus) String() string
type OperatingSystem ¶
type OperatingSystem int
const ( AnyOperatingSystem OperatingSystem = iota Windows MacOS Linux )
func AllOperatingSystems ¶
func AllOperatingSystems() []OperatingSystem
func OperatingSystemsFromUrl ¶
func OperatingSystemsFromUrl(u *url.URL) []OperatingSystem
func ParseManyOperatingSystems ¶
func ParseManyOperatingSystems(osStrings []string) []OperatingSystem
func ParseOperatingSystem ¶
func ParseOperatingSystem(operatingSystem string) OperatingSystem
func (OperatingSystem) String ¶
func (os OperatingSystem) String() string
type PCGWUrlProvider ¶
type PCGWUrlProvider struct {
// contains filtered or unexported fields
}
func NewPCGWUrlProvider ¶
func NewPCGWUrlProvider(pt ProductType, rdx kevlar.ReadableRedux) (*PCGWUrlProvider, error)
func (*PCGWUrlProvider) GOGIdToPCGWPageId ¶
func (pcgwup *PCGWUrlProvider) GOGIdToPCGWPageId(gogId string) string
type ProductReader ¶
type ProductReader struct {
// contains filtered or unexported fields
}
func NewProductReader ¶
func NewProductReader(pt ProductType) (*ProductReader, error)
func (*ProductReader) AccountPage ¶
func (pr *ProductReader) AccountPage(page string) (accountPage *gog_integration.AccountPage, err error)
func (*ProductReader) AccountProduct ¶
func (pr *ProductReader) AccountProduct(id string) (accountProduct *gog_integration.AccountProduct, err error)
func (*ProductReader) ApiProductV1 ¶
func (pr *ProductReader) ApiProductV1(id string) (apiProductV1 *gog_integration.ApiProductV1, err error)
func (*ProductReader) ApiProductV2 ¶
func (pr *ProductReader) ApiProductV2(id string) (apiProductV2 *gog_integration.ApiProductV2, err error)
func (*ProductReader) CatalogPage ¶
func (pr *ProductReader) CatalogPage(page string) (catalogPage *gog_integration.CatalogPage, err error)
func (*ProductReader) CatalogProduct ¶
func (pr *ProductReader) CatalogProduct(id string) (catalogProduct *gog_integration.CatalogProduct, err error)
func (*ProductReader) CreatedAfter ¶
func (pr *ProductReader) CreatedAfter(timestamp int64) ([]string, error)
func (*ProductReader) CreatedOrUpdatedAfter ¶
func (pr *ProductReader) CreatedOrUpdatedAfter(timestamp int64) ([]string, error)
func (*ProductReader) Details ¶
func (pr *ProductReader) Details(id string) (details *gog_integration.Details, err error)
func (*ProductReader) GamesDbProduct ¶ added in v0.1.69
func (pr *ProductReader) GamesDbProduct(id string) (gdp *gog_integration.GamesDbProduct, err error)
func (*ProductReader) Get ¶
func (pr *ProductReader) Get(id string) (io.ReadCloser, error)
func (*ProductReader) GetFromStorage ¶
func (pr *ProductReader) GetFromStorage(id string) (io.ReadCloser, error)
func (*ProductReader) HLTBData ¶
func (pr *ProductReader) HLTBData(id string) (data *hltb_integration.Data, err error)
func (*ProductReader) HLTBRootPage ¶
func (pr *ProductReader) HLTBRootPage() (*hltb_integration.RootPage, error)
func (*ProductReader) IsCurrent ¶
func (pr *ProductReader) IsCurrent() (bool, int64)
func (*ProductReader) IsUpdatedAfter ¶
func (pr *ProductReader) IsUpdatedAfter(id string, timestamp int64) (bool, error)
func (*ProductReader) Keys ¶
func (pr *ProductReader) Keys() ([]string, error)
func (*ProductReader) Licences ¶
func (pr *ProductReader) Licences() (licences *gog_integration.Licences, err error)
func (*ProductReader) Order ¶
func (pr *ProductReader) Order(id string) (order *gog_integration.Order, err error)
func (*ProductReader) OrderPage ¶
func (pr *ProductReader) OrderPage(page string) (orderPage *gog_integration.OrderPage, err error)
func (*ProductReader) PCGWEngine ¶
func (pr *ProductReader) PCGWEngine(id string) (e *pcgw_integration.Engine, err error)
func (*ProductReader) PCGWExternalLinks ¶
func (pr *ProductReader) PCGWExternalLinks(id string) (pel *pcgw_integration.ParseExternalLinks, err error)
func (*ProductReader) PCGWPageId ¶
func (pr *ProductReader) PCGWPageId(id string) (ps *pcgw_integration.PageId, err error)
func (*ProductReader) ProductType ¶
func (pr *ProductReader) ProductType() ProductType
func (*ProductReader) ProductsGetter ¶
func (pr *ProductReader) ProductsGetter(page string) (productsGetter gog_integration.ProductsGetter, err error)
func (*ProductReader) ProtonDBSummary ¶
func (pr *ProductReader) ProtonDBSummary(id string) (summary *protondb_integration.Summary, err error)
func (*ProductReader) ReadValue ¶
func (pr *ProductReader) ReadValue(key string) (interface{}, error)
func (*ProductReader) SteamAppList ¶
func (pr *ProductReader) SteamAppList() (steamAppListResponse *steam_integration.GetAppListResponse, err error)
func (*ProductReader) SteamAppReviews ¶
func (pr *ProductReader) SteamAppReviews(id string) (steamAppReviews *steam_integration.AppReviews, err error)
func (*ProductReader) SteamDeckAppCompatibilityReport ¶
func (pr *ProductReader) SteamDeckAppCompatibilityReport(id string) (deckAppCompatibilityReport *steam_integration.DeckAppCompatibilityReport, err error)
func (*ProductReader) SteamGetAppNewsResponse ¶
func (pr *ProductReader) SteamGetAppNewsResponse(id string) (steamAppNewsResponse *steam_integration.GetNewsForAppResponse, err error)
func (*ProductReader) SteamStorePage ¶
func (pr *ProductReader) SteamStorePage(id string) (*steam_integration.StorePage, error)
func (*ProductReader) UpdatedAfter ¶
func (pr *ProductReader) UpdatedAfter(timestamp int64) ([]string, error)
func (*ProductReader) UserWishlist ¶
func (pr *ProductReader) UserWishlist() (userWishlist *gog_integration.UserWishlist, err error)
func (*ProductReader) UserWishlistProduct ¶
func (pr *ProductReader) UserWishlistProduct(id string) (userWishlistProduct string, err error)
type ProductType ¶
type ProductType int
const ( UnknownProductType ProductType = iota // GOG.com product types CatalogPage CatalogProducts AccountPage AccountProducts UserWishlist UserWishlistProducts Details ApiProductsV1 ApiProductsV2 Licences LicenceProducts OrderPage Orders GamesDbProducts // Steam product types SteamAppList SteamAppNews SteamReviews SteamStorePage SteamDeckCompatibilityReport // PCGamingWiki product types PCGWPageId PCGWEngine PCGWExternalLinks // HLTB product types HLTBRootPage HLTBData // ProtonDB product types ProtonDBSummary )
func FastPageFetchProducts ¶
func FastPageFetchProducts() []ProductType
func GOGArrayProducts ¶
func GOGArrayProducts() []ProductType
func GOGDetailProducts ¶
func GOGDetailProducts() []ProductType
func GOGPagedProducts ¶
func GOGPagedProducts() []ProductType
func GOGRemoteProducts ¶
func GOGRemoteProducts() []ProductType
func HLTBArrayProducts ¶
func HLTBArrayProducts() []ProductType
func HLTBDetailProducts ¶
func HLTBDetailProducts() []ProductType
func HLTBRemoteProducts ¶
func HLTBRemoteProducts() []ProductType
func LocalProducts ¶
func LocalProducts() []ProductType
func MainProductTypes ¶
func MainProductTypes(pt ProductType) []ProductType
func PCGWDetailProducts ¶
func PCGWDetailProducts() []ProductType
func PCGWRemoteProducts ¶
func PCGWRemoteProducts() []ProductType
func ParseProductType ¶
func ParseProductType(productType string) ProductType
func ProductTypeFromUrl ¶
func ProductTypeFromUrl(u *url.URL) ProductType
func ProductTypesSupportingImageType ¶
func ProductTypesSupportingImageType(imageType ImageType) []ProductType
func ProtonDBDetailProducts ¶
func ProtonDBDetailProducts() []ProductType
func ProtonDBRemoteProducts ¶
func ProtonDBRemoteProducts() []ProductType
func RemoteProducts ¶
func RemoteProducts() []ProductType
func SplitProductType ¶
func SplitProductType(pt ProductType) ProductType
func SteamArrayProducts ¶
func SteamArrayProducts() []ProductType
func SteamDetailProducts ¶
func SteamDetailProducts() []ProductType
func SteamRemoteProducts ¶
func SteamRemoteProducts() []ProductType
func (ProductType) HumanReadableString ¶
func (pt ProductType) HumanReadableString() string
func (ProductType) String ¶
func (pt ProductType) String() string
type SteamUrlProvider ¶
type SteamUrlProvider struct {
// contains filtered or unexported fields
}
func NewSteamUrlProvider ¶
func NewSteamUrlProvider(pt ProductType, rdx kevlar.ReadableRedux) (*SteamUrlProvider, error)
func (*SteamUrlProvider) GOGIdToSteamAppId ¶
func (sup *SteamUrlProvider) GOGIdToSteamAppId(gogId string) uint32
type TheoDownloadLink ¶
type TheoDownloadLink struct { ManualUrl string `json:"manual-url"` Name string `json:"name"` Status string `json:"status"` ValidationResult string `json:"validation-result"` LocalFilename string `json:"local-filename"` Md5 string `json:"md5"` OS string `json:"os"` Type string `json:"type"` LanguageCode string `json:"language-code"` Version string `json:"version"` EstimatedBytes int `json:"estimated-bytes"` }
type TheoDownloadLinks ¶
type TheoDownloadLinks []TheoDownloadLink
func (TheoDownloadLinks) FilterDownloadTypes ¶
func (tdl TheoDownloadLinks) FilterDownloadTypes(downloadTypes ...DownloadType) TheoDownloadLinks
func (TheoDownloadLinks) FilterLanguageCodes ¶
func (tdl TheoDownloadLinks) FilterLanguageCodes(languageCodes ...string) TheoDownloadLinks
func (TheoDownloadLinks) FilterOperatingSystems ¶
func (tdl TheoDownloadLinks) FilterOperatingSystems(operatingSystems ...OperatingSystem) TheoDownloadLinks
type TheoImages ¶
type TheoImages struct { VerticalImage string `json:"vertical-image,omitempty"` Image string `json:"image,omitempty"` Hero string `json:"hero,omitempty"` Logo string `json:"logo,omitempty"` Icon string `json:"icon,omitempty"` IconSquare string `json:"icon-square,omitempty"` Background string `json:"background"` }
type TheoMetadata ¶
type TheoMetadata struct { Id string `json:"id"` Slug string `json:"slug"` Title string `json:"title"` Images TheoImages `json:"images"` DownloadLinks TheoDownloadLinks `json:"download-links,omitempty"` }
type UrlProvider ¶
func NewUrlProvider ¶
func NewUrlProvider(pt ProductType, rdx kevlar.ReadableRedux) (UrlProvider, error)
type ValidationChunk ¶
type ValidationFile ¶
type ValidationFile struct { XMLName xml.Name `xml:"file"` Name string `xml:"name,attr"` Available int `xml:"available,attr"` NotAvailableMessage string `xml:"notavailablemsg,attr"` MD5 string `xml:"md5,attr"` Chunks int `xml:"chunks,attr"` Timestamp string `xml:"timestamp,attr"` TotalSize int `xml:"total_size,attr"` ValidationChunks []ValidationChunk `xml:"chunk"` }
type ValidationResult ¶
type ValidationResult int
const ( ValidationResultUnknown ValidationResult = iota ValidatedSuccessfully ValidatedWithGeneratedChecksum ValidatedUnresolvedManualUrl ValidatedMissingLocalFile ValidatedMissingChecksum ValidationError ValidatedChecksumMismatch )
func ParseValidationResult ¶
func ParseValidationResult(vrs string) ValidationResult
func (ValidationResult) HumanReadableString ¶
func (vr ValidationResult) HumanReadableString() string
func (ValidationResult) String ¶
func (vr ValidationResult) String() string
Source Files ¶
- checks.go
- directories.go
- download_type.go
- downloads.go
- extract_desc_items.go
- gog_url_providers.go
- hltb_url_provider.go
- id_set.go
- image_property_urls.go
- image_type.go
- local_tag.go
- manual_url_status.go
- operating_system.go
- paths.go
- pcgw_url_provider.go
- print_params.go
- product_reader.go
- product_type.go
- properties.go
- recycle_bin.go
- redux.go
- sort_map.go
- steam_grid_image_filename.go
- steam_url_providers.go
- sync_events.go
- tag.go
- theo_metadata.go
- updates.go
- url_getters.go
- url_providers.go
- validation_result.go
- validation_types.go
- walkers.go
- wishlist.go
Click to show internal directories.
Click to hide internal directories.