pcgw_integration

package
v0.5.21 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: AGPL-3.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EngineCargoQueryUrl added in v0.1.23

func EngineCargoQueryUrl(pageId string) *url.URL

func GogPageIdCargoQueryUrl added in v0.2.7

func GogPageIdCargoQueryUrl(gogId string) *url.URL

func ParseExternalLinksUrl

func ParseExternalLinksUrl(pageId string) *url.URL

func SteamPageIdCargoQueryUrl added in v0.2.7

func SteamPageIdCargoQueryUrl(steamAppId string) *url.URL

func WikiGogUrl added in v0.2.6

func WikiGogUrl(gogId string) *url.URL

func WikiRawUrl added in v0.2.47

func WikiRawUrl(pageId string) *url.URL

func WikiSteamUrl added in v0.2.6

func WikiSteamUrl(steamAppId string) *url.URL

func WikiUrl

func WikiUrl(pageId string) *url.URL

Types

type Engine added in v0.1.25

type Engine struct {
	Cargoquery []struct {
		Title struct {
			Engine string `json:"Engine"`
			Build  string `json:"Build"`
		} `json:"title"`
	} `json:"cargoquery"`
}

func (*Engine) GetEngines added in v0.1.25

func (e *Engine) GetEngines() []string

func (*Engine) GetEnginesBuilds added in v0.1.25

func (e *Engine) GetEnginesBuilds() []string

type EnginesBuildsGetter added in v0.1.25

type EnginesBuildsGetter interface {
	GetEnginesBuilds() []string
}

type EnginesGetter added in v0.1.25

type EnginesGetter interface {
	GetEngines() []string
}
type IWLinks struct {
}

type PageId added in v0.1.26

type PageId struct {
	Cargoquery []struct {
		Title struct {
			PageID     string `json:"PageID"`
			SteamAppID string `json:"Steam AppID"`
		} `json:"title"`
	} `json:"cargoquery"`
}

func (*PageId) GetPageId added in v0.1.26

func (ps *PageId) GetPageId() string

func (*PageId) GetSteamAppId added in v0.2.24

func (ps *PageId) GetSteamAppId() string

type PageIdGetter

type PageIdGetter interface {
	GetPageId() string
}
type ParseExternalLinks struct {
	Parse struct {
		Title         string   `json:"title"`
		PageId        uint64   `json:"pageid"`
		ExternalLinks []string `json:"externallinks"`
		IWLinks       []struct {
			Prefix string `json:"prefix"`
			Url    string `json:"url"`
			Id     string `json:"*"`
		} `json:"iwlinks"`
	} `json:"parse"`
}

func (*ParseExternalLinks) GetHltbId added in v0.2.5

func (pel *ParseExternalLinks) GetHltbId() string

func (*ParseExternalLinks) GetIgdbId added in v0.2.7

func (pel *ParseExternalLinks) GetIgdbId() string

func (*ParseExternalLinks) GetMobyGamesId added in v0.1.3

func (pel *ParseExternalLinks) GetMobyGamesId() string

func (*ParseExternalLinks) GetOpenCriticIdSlug added in v0.2.38

func (pel *ParseExternalLinks) GetOpenCriticIdSlug() (string, string)

func (*ParseExternalLinks) GetSteamAppIds added in v0.1.84

func (pel *ParseExternalLinks) GetSteamAppIds() []uint32

GetSteamAppIds extracts Steam AppIds from PCGamingWiki parse externallinks results The same data can be obtained with an original cargo query (see cargoquery_url.go), however it seems like cargoquery will return all editions AppIds, while externallinks seems more focused on a specific product edition (corresponding to that pageId)

func (*ParseExternalLinks) GetStrategyWikiId added in v0.1.3

func (pel *ParseExternalLinks) GetStrategyWikiId() string

func (*ParseExternalLinks) GetVndbId added in v0.2.7

func (pel *ParseExternalLinks) GetVndbId() string

func (*ParseExternalLinks) GetWikipediaId added in v0.1.3

func (pel *ParseExternalLinks) GetWikipediaId() string

func (*ParseExternalLinks) GetWineHQId added in v0.1.3

func (pel *ParseExternalLinks) GetWineHQId() string

Jump to

Keyboard shortcuts

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