opencritic_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: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiArticleGameUrl added in v0.2.40

func ApiArticleGameUrl(id string) *url.URL

func ApiGameUrl added in v0.2.43

func ApiGameUrl(id string) *url.URL

func ApiRatingsGameUrl added in v0.2.40

func ApiRatingsGameUrl(id string) *url.URL

func GameUrl

func GameUrl(id, slug string) *url.URL

Types

type ApiGame added in v0.2.40

type ApiGame struct {
	Images struct {
		Box         ImageSizes   `json:"box"`
		Square      ImageSizes   `json:"square"`
		Masthead    ImageSizes   `json:"masthead"`
		Banner      ImageSizes   `json:"banner"`
		Screenshots []ImageSizes `json:"screenshots"`
	} `json:"images"`
	IsPre2015           bool    `json:"isPre2015"`
	HasLootBoxes        bool    `json:"hasLootBoxes"`
	IsMajorTitle        bool    `json:"isMajorTitle"`
	PercentRecommended  float64 `json:"percentRecommended"`
	NumReviews          int     `json:"numReviews"`
	NumTopCriticReviews int     `json:"numTopCriticReviews"`
	MedianScore         float64 `json:"medianScore"`
	TopCriticScore      float64 `json:"topCriticScore"`
	Percentile          int     `json:"percentile"`
	Tier                string  `json:"tier"`
	Name                string  `json:"name"`
	Platforms           []struct {
		Id          int       `json:"id"`
		Name        string    `json:"name"`
		ShortName   string    `json:"shortName"`
		ImageSrc    string    `json:"imageSrc"`
		ReleaseDate time.Time `json:"releaseDate"`
	} `json:"Platforms"`
	Companies []struct {
		Name string `json:"name"`
		Type string `json:"type"`
	} `json:"Companies"`
	Genres []struct {
		Id   int    `json:"id"`
		Name string `json:"name"`
	} `json:"Genres"`
	Trailers []struct {
		Title         string    `json:"title"`
		VideoId       string    `json:"videoId"`
		ChannelId     string    `json:"channelId"`
		Description   string    `json:"description"`
		ExternalUrl   string    `json:"externalUrl"`
		ChannelTitle  string    `json:"channelTitle"`
		PublishedDate time.Time `json:"publishedDate"`
		IsOpenCritic  bool      `json:"isOpenCritic"`
		IsSpecial     string    `json:"isSpecial"`
	} `json:"trailers"`
	Screenshots []struct {
		Id        string `json:"_id"`
		FullRes   string `json:"fullRes"`
		Thumbnail string `json:"thumbnail"`
	} `json:"screenshots"`
	Id               int       `json:"id"`
	FirstReleaseDate time.Time `json:"firstReleaseDate"`
	Affiliates       []struct {
		ExternalUrl string `json:"externalUrl"`
		Name        string `json:"name"`
	} `json:"Affiliates"`
	CreatedAt          time.Time `json:"createdAt"`
	UpdatedAt          time.Time `json:"updatedAt"`
	MastheadScreenshot struct {
		FullRes string `json:"fullRes"`
	} `json:"mastheadScreenshot"`
	Description      string    `json:"description"`
	FirstReviewDate  time.Time `json:"firstReviewDate"`
	LatestReviewDate time.Time `json:"latestReviewDate"`
	BannerScreenshot struct {
		FullRes string `json:"fullRes"`
	} `json:"bannerScreenshot"`
	MonetizationFeatures struct {
		HasLootBoxes bool `json:"hasLootBoxes"`
	} `json:"monetizationFeatures"`
	VerticalLogoScreenshot struct {
		FullRes   string `json:"fullRes"`
		Thumbnail string `json:"thumbnail"`
	} `json:"verticalLogoScreenshot"`
	SquareScreenshot struct {
		FullRes   string `json:"fullRes"`
		Thumbnail string `json:"thumbnail"`
	} `json:"squareScreenshot"`
	ImageMigrationComplete    bool      `json:"imageMigrationComplete"`
	TenthReviewDate           time.Time `json:"tenthReviewDate"`
	BiggestDiscountDollars    float64   `json:"biggestDiscountDollars"`
	BiggestDiscountPercentage float64   `json:"biggestDiscountPercentage"`
	Tags                      []string  `json:"tags"`
	Url                       string    `json:"url"`
}

type ImageSizes added in v0.2.44

type ImageSizes struct {
	Og string `json:"og"`
	Xs string `json:"xs"`
	Sm string `json:"sm"`
	Md string `json:"md"`
	Lg string `json:"lg"`
	Xl string `json:"xl"`
	Id string `json:"_id"`
}

Jump to

Keyboard shortcuts

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