Versions in this module Expand all Collapse all v1 v1.1.0 May 5, 2026 v1.0.0 May 3, 2026 Changes in this version + const ImageTypeCoverBig2xAlias + const ImageTypeScreenshotBigAlias + const ImageTypeThumbAlias + const WebsiteTypeDiscord + const WebsiteTypeEpicGames + const WebsiteTypeFacebook + const WebsiteTypeGOG + const WebsiteTypeOfficial + const WebsiteTypeSteam + const WebsiteTypeTwitch + const WebsiteTypeTwitter + const WebsiteTypeYoutube + var WebsiteTypeNames = map[int8]string + type Client struct + func New(log *zap.Logger, conf appconf.IGDB) (*Client, error) + func (c *Client) CompanyExists(ctx context.Context, companyName string) (bool, error) + func (c *Client) GetGameInfoForUpdate(ctx context.Context, igdbID int64) (GameInfoForUpdate, error) + func (c *Client) GetImageByURL(ctx context.Context, imageURL, imageType string) (GetImageResp, error) + func (c *Client) GetTopRatedGames(ctx context.Context, platformsIDs []int64, releasedBefore time.Time, ...) ([]TopRatedGames, error) + type Company struct + Company IDName + Developer bool + Publisher bool + type CompanyInfo struct + ID int64 + Name string + type GameInfoForUpdate struct + ID int64 + Name string + Platforms []int64 + TotalRating float64 + TotalRatingCount int32 + Websites []Website + type GetImageResp struct + Body *bytes.Reader + ContentType string + FileName string + type IDName struct + ID int64 + Name string + type TokenResp struct + AccessToken string + ExpiresIn int64 + TokenType string + type TopRatedGames struct + Cover URL + FirstReleaseDate int64 + Genres []IDName + ID int64 + InvolvedCompanies []Company + Name string + Platforms []int64 + Screenshots []URL + Slug string + Summary string + TotalRating float64 + TotalRatingCount int32 + Websites []Website + type URL struct + URL string + type Website struct + Type int8 + URL string