Documentation ¶
Index ¶
- Variables
- type Block
- type Covers
- type Currency
- type Developer
- type Document
- type DocumentType
- type DocumentsByUserRequest
- type Feature
- type Game
- type GameType
- type GamesByFilterRequest
- type GamyByFilterSortType
- type Genre
- type Image
- type Language
- type LauncherClient
- type LauncherPlatform
- type LinkedAccount
- type LocalizationLanguage
- type Media
- type Platform
- type Post
- type PostsByFilterRequest
- type Pricing
- type Publisher
- type Rating
- type RequirementsSet
- type Review
- type Reviews
- type SocialLink
- type Storefront
- type SystemRequirements
- type Tag
- type UpdateProfile
- type User
- type UserInfoRequest
- type UserInfoRequestStatus
- type UserLanguage
- type Video
Constants ¶
This section is empty.
Variables ¶
View Source
var AllCurrency = []Currency{ CurrencyUsd, CurrencyEur, CurrencyRub, CurrencyBtc, }
View Source
var AllDocumentType = []DocumentType{ DocumentTypeLicense, DocumentTypeGameRules, DocumentTypePrivacyPolicy, }
View Source
var AllGameType = []GameType{ GameTypeUndefined, GameTypeWeb, GameTypeDesktop, }
View Source
var AllGamyByFilterSortType = []GamyByFilterSortType{ GamyByFilterSortTypeReleaseDate, GamyByFilterSortTypeBestSales, GamyByFilterSortTypeAlphabet, }
View Source
var AllLauncherPlatform = []LauncherPlatform{ LauncherPlatformUndefined, LauncherPlatformWindows, LauncherPlatformMacOs, }
View Source
var AllPlatform = []Platform{ PlatformUndefined, PlatformLinux, PlatformMacOs, PlatformWindows, PlatformWeb, }
View Source
var AllUserInfoRequestStatus = []UserInfoRequestStatus{ UserInfoRequestStatusNone, UserInfoRequestStatusInProgress, UserInfoRequestStatusReady, }
View Source
var AllUserLanguage = []UserLanguage{ UserLanguageEnglish, UserLanguageSpanish, UserLanguageRussian, }
Functions ¶
This section is empty.
Types ¶
type Covers ¶
type Covers struct { WideSlider *Image `json:"wideSlider,omitempty"` Vertical *Image `json:"vertical,omitempty"` Horizontal *Image `json:"horizontal,omitempty"` HorizontalSmall *Image `json:"horizontalSmall,omitempty"` LargeSingle *Image `json:"largeSingle,omitempty"` Catalog *Image `json:"catalog,omitempty"` Description *Image `json:"description,omitempty"` }
type DocumentType ¶
type DocumentType string
const ( DocumentTypeLicense DocumentType = "license" DocumentTypeGameRules DocumentType = "game_rules" DocumentTypePrivacyPolicy DocumentType = "privacy_policy" )
func (DocumentType) IsValid ¶
func (e DocumentType) IsValid() bool
func (DocumentType) MarshalGQL ¶
func (e DocumentType) MarshalGQL(w io.Writer)
func (DocumentType) String ¶
func (e DocumentType) String() string
func (*DocumentType) UnmarshalGQL ¶
func (e *DocumentType) UnmarshalGQL(v interface{}) error
type DocumentsByUserRequest ¶
type Game ¶
type Game struct { ID string `json:"id"` Type GameType `json:"type"` Slug string `json:"slug"` Title string `json:"title"` Summary string `json:"summary"` Description string `json:"description"` Developers []*Developer `json:"developers,omitempty"` Publishers []*Publisher `json:"publishers,omitempty"` ReleaseDate string `json:"releaseDate"` License string `json:"license"` Ranking *string `json:"ranking,omitempty"` Genres []*Genre `json:"genres,omitempty"` Tags []*Tag `json:"tags,omitempty"` Features []*Feature `json:"features,omitempty"` Languages []*Language `json:"languages,omitempty"` SocialLinks []*SocialLink `json:"socialLinks,omitempty"` Platforms []Platform `json:"platforms"` Requirements []*SystemRequirements `json:"requirements,omitempty"` Media *Media `json:"media,omitempty"` Reviews *Reviews `json:"reviews,omitempty"` Ratings []*Rating `json:"ratings,omitempty"` Pricing *Pricing `json:"pricing,omitempty"` }
type GamesByFilterRequest ¶
type GamesByFilterRequest struct { Title *string `json:"title,omitempty"` Platforms []string `json:"platforms"` Genres []int `json:"genres"` Features []int `json:"features"` Languages []string `json:"languages"` SortType *GamyByFilterSortType `json:"sortType,omitempty"` OnlyMyGames *bool `json:"onlyMyGames,omitempty"` Limit *int `json:"limit,omitempty"` Offset *int `json:"offset,omitempty"` }
type GamyByFilterSortType ¶
type GamyByFilterSortType string
const ( GamyByFilterSortTypeReleaseDate GamyByFilterSortType = "releaseDate" GamyByFilterSortTypeBestSales GamyByFilterSortType = "bestSales" GamyByFilterSortTypeAlphabet GamyByFilterSortType = "alphabet" )
func (GamyByFilterSortType) IsValid ¶
func (e GamyByFilterSortType) IsValid() bool
func (GamyByFilterSortType) MarshalGQL ¶
func (e GamyByFilterSortType) MarshalGQL(w io.Writer)
func (GamyByFilterSortType) String ¶
func (e GamyByFilterSortType) String() string
func (*GamyByFilterSortType) UnmarshalGQL ¶
func (e *GamyByFilterSortType) UnmarshalGQL(v interface{}) error
type LauncherClient ¶
type LauncherPlatform ¶
type LauncherPlatform string
const ( LauncherPlatformUndefined LauncherPlatform = "undefined" LauncherPlatformWindows LauncherPlatform = "windows" LauncherPlatformMacOs LauncherPlatform = "macOS" )
func (LauncherPlatform) IsValid ¶
func (e LauncherPlatform) IsValid() bool
func (LauncherPlatform) MarshalGQL ¶
func (e LauncherPlatform) MarshalGQL(w io.Writer)
func (LauncherPlatform) String ¶
func (e LauncherPlatform) String() string
func (*LauncherPlatform) UnmarshalGQL ¶
func (e *LauncherPlatform) UnmarshalGQL(v interface{}) error
type LinkedAccount ¶
type LocalizationLanguage ¶
type PostsByFilterRequest ¶
type RequirementsSet ¶
type SocialLink ¶
type Storefront ¶
type Storefront struct {
Blocks []*Block `json:"blocks,omitempty"`
}
type SystemRequirements ¶
type SystemRequirements struct { Platform string `json:"platform"` Minimal *RequirementsSet `json:"minimal,omitempty"` Recommended *RequirementsSet `json:"recommended,omitempty"` }
type UpdateProfile ¶
type UpdateProfile struct { FirstName *string `json:"firstName,omitempty"` LastName *string `json:"lastName,omitempty"` Birthdate *string `json:"birthdate,omitempty"` PhotoURL *string `json:"photoURL,omitempty"` Phone *string `json:"phone,omitempty"` Language *UserLanguage `json:"language,omitempty"` Currency *Currency `json:"currency,omitempty"` Address1 *string `json:"address1,omitempty"` Address2 *string `json:"address2,omitempty"` City *string `json:"city,omitempty"` State *string `json:"state,omitempty"` Country *string `json:"country,omitempty"` Zip *string `json:"zip,omitempty"` }
type User ¶
type User struct { ID int `json:"id"` Status int `json:"status"` Username string `json:"username"` Email string `json:"email"` EmailVerified bool `json:"email_verified"` Phone string `json:"phone"` PhoneVerified bool `json:"phone_verified"` FirstName string `json:"firstName"` LastName string `json:"lastName"` Birthdate string `json:"birthdate"` PhotoURL string `json:"photoURL"` Language UserLanguage `json:"language"` Currency Currency `json:"currency"` Address1 string `json:"address1"` Address2 string `json:"address2"` City string `json:"city"` State string `json:"state"` Country string `json:"country"` Zip string `json:"zip"` }
type UserInfoRequest ¶
type UserInfoRequest struct { Status UserInfoRequestStatus `json:"status"` Expiration *time.Time `json:"expiration,omitempty"` }
type UserInfoRequestStatus ¶
type UserInfoRequestStatus string
const ( UserInfoRequestStatusNone UserInfoRequestStatus = "None" UserInfoRequestStatusInProgress UserInfoRequestStatus = "InProgress" UserInfoRequestStatusReady UserInfoRequestStatus = "Ready" )
func (UserInfoRequestStatus) IsValid ¶
func (e UserInfoRequestStatus) IsValid() bool
func (UserInfoRequestStatus) MarshalGQL ¶
func (e UserInfoRequestStatus) MarshalGQL(w io.Writer)
func (UserInfoRequestStatus) String ¶
func (e UserInfoRequestStatus) String() string
func (*UserInfoRequestStatus) UnmarshalGQL ¶
func (e *UserInfoRequestStatus) UnmarshalGQL(v interface{}) error
type UserLanguage ¶
type UserLanguage string
const ( UserLanguageEnglish UserLanguage = "English" UserLanguageSpanish UserLanguage = "Spanish" UserLanguageRussian UserLanguage = "Russian" )
func (UserLanguage) IsValid ¶
func (e UserLanguage) IsValid() bool
func (UserLanguage) MarshalGQL ¶
func (e UserLanguage) MarshalGQL(w io.Writer)
func (UserLanguage) String ¶
func (e UserLanguage) String() string
func (*UserLanguage) UnmarshalGQL ¶
func (e *UserLanguage) UnmarshalGQL(v interface{}) error
Click to show internal directories.
Click to hide internal directories.