Documentation
¶
Index ¶
- type Descriptor
- type Game
- type GameGenre
- type GameLangs
- type GameRating
- type GameRequirements
- type GameReview
- type GameTag
- type Langs
- type Link
- type LocalizedString
- type LocalizedStringArray
- type MachineRequirements
- type Media
- type PersonalInformation
- type PlatformRequirements
- type Platforms
- type Ratings
- type Socials
- type User
- type UserAccount
- type UserAddress
- type UserSocialAccount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Descriptor ¶
type Descriptor struct {
Title LocalizedString
System string
}
type Game ¶
type Game struct {
QilinID string `json:"qilin_id"`
Title string `json:"title"`
Developers Link `json:"developers"`
Publishers Link `json:"publishers"`
ReleaseDate time.Time `json:"release_date"`
DisplayRemainingTime bool `json:"display_remaining_time"`
AchievementOnProd bool `json:"achievement_on_prod"`
FeaturesCommon []string `json:"features_common"`
FeaturesCtrl string `json:"features_ctrl"`
Platforms Platforms `json:"platforms"`
Requirements GameRequirements `json:"requirements"`
Languages GameLangs `json:"languages"`
GenreMain GameGenre `json:"genre_main"`
GenreAddition []GameGenre `json:"genre_addition"`
Tags []GameTag `json:"tags"`
Previews LocalizedString `json:"previews"`
Media *Media `json:"media"`
Ratings *Ratings `json:"ratings"`
Description LocalizedString `json:"description"`
Tagline LocalizedString `json:"tagline"`
Reviews []GameReview `json:"reviews"`
}
type GameGenre ¶
type GameGenre struct {
ID string `json:"id"`
Name LocalizedString
}
type GameRating ¶
type GameRequirements ¶
type GameRequirements struct {
Windows *PlatformRequirements `json:"windows"`
MacOs *PlatformRequirements `json:"mac_os"`
Linux *PlatformRequirements `json:"linux"`
}
type GameReview ¶
type GameTag ¶
type GameTag struct {
ID string `json:"id"`
Name LocalizedString
}
type LocalizedString ¶
type LocalizedString struct {
// english
EN string `json:"en"`
// russian
RU string `json:"ru,omitempty"`
// other languages
FR string `json:"fr,omitempty"`
ES string `json:"es,omitempty"`
DE string `json:"de,omitempty"`
IT string `json:"it,omitempty"`
PT string `json:"pt,omitempty"`
}
LocalizedString is helper object to hold localized string properties.
func (LocalizedString) GetValueOrDefault ¶
func (p LocalizedString) GetValueOrDefault(lng string) string
func (*LocalizedString) Scan ¶
func (p *LocalizedString) Scan(src interface{}) error
type LocalizedStringArray ¶
type LocalizedStringArray struct {
// english
EN []string `json:"en"`
// russian
RU []string `json:"ru,omitempty"`
// other languages
FR []string `json:"fr,omitempty"`
ES []string `json:"es,omitempty"`
DE []string `json:"de,omitempty"`
IT []string `json:"it,omitempty"`
PT []string `json:"pt,omitempty"`
}
func (LocalizedStringArray) GetValueOrDefault ¶
func (p LocalizedStringArray) GetValueOrDefault(lng string) []string
func (*LocalizedStringArray) Scan ¶
func (p *LocalizedStringArray) Scan(src interface{}) error
type MachineRequirements ¶
type MachineRequirements struct {
System string `json:"system"`
Processor string `json:"processor"`
Graphics string `json:"graphics"`
Sound string `json:"sound"`
Ram int32 `json:"ram"`
RamDimension string `json:"ram_dimension"`
Storage int32 `json:"storage"`
StorageDimension string `json:"storage_dimension"`
Other string `json:"other"`
}
type Media ¶
type Media struct {
CoverImage LocalizedString `json:"cover_image"`
CoverVideo LocalizedString `json:"cover_video"`
Trailers LocalizedStringArray `json:"trailers"`
Screenshots LocalizedStringArray `json:"screenshots"`
Special LocalizedString `json:"special"`
Friends LocalizedString `json:"friends"`
CapsuleGeneric LocalizedString `json:"capsule_generic"`
CapsuleSmall LocalizedString `json:"capsule_small"`
}
type PersonalInformation ¶
type PlatformRequirements ¶
type PlatformRequirements struct {
Minimal MachineRequirements `json:"minimal"`
Recommended MachineRequirements `json:"recommended"`
}
type Ratings ¶
type Ratings struct {
PEGI GameRating `json:"pegi"`
BBFC GameRating `json:"bbfc"`
CERO GameRating `json:"cero"`
ESRB GameRating `json:"esrb"`
USK GameRating `json:"usk"`
}
type User ¶
type User struct {
ID bson.ObjectId `json:"id" bson:"_id,omitempty"`
Personal PersonalInformation `json:"personal"`
Account UserAccount `json:"account"`
}
type UserAccount ¶
type UserAccount struct {
Nickname string `json:"nickname"`
PrimaryLanguage string `json:"primary_language"`
AdditionalLanguages []string `json:"additional_languages"`
Socials []UserSocialAccount `json:"socials"`
}
type UserAddress ¶
type UserSocialAccount ¶
Click to show internal directories.
Click to hide internal directories.