Documentation ¶
Index ¶
- type CleanDB
- type Developers
- type DevelopersData
- type DumpDb
- type DumpGame
- type DumpGamesData
- type DumpGamesDbDate
- type DumpImage
- type DumpImagesData
- type DumpIncludes
- type DumpPlatform
- type DumpPlatformsData
- type DumpUIDType
- type Game
- type Genres
- type GenresData
- type IntLookupItems
- type LookupItem
- type NullBool
- type NullInt
- type NullString
- type Publishers
- type PublishersData
- type StrLookupItems
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Developers ¶
type Developers struct { Code int `json:"code"` Status string `json:"status"` Data DevelopersData `json:"data"` }
type DevelopersData ¶
type DevelopersData struct {
Developers StrLookupItems `json:"developers"`
}
type DumpDb ¶
type DumpDb struct { LastEditID int `json:"last_edit_id"` Include DumpIncludes `json:"include"` Data DumpGamesData `json:"data"` }
type DumpGame ¶
type DumpGame struct { ID int `json:"id"` GameTitle string `json:"game_title"` PlatformID int `json:"platform"` ReleaseDate *DumpGamesDbDate `json:"release_date"` Overview *string `json:"overview"` Youtube *string `json:"youtube"` Players *int `json:"players"` Coop *string `json:"coop"` Rating *string `json:"rating"` DeveloperIDS *[]int `json:"developers"` GenreIDS *[]int `json:"genres"` PublisherIDS *[]int `json:"publishers"` Alternatives *[]string `json:"alternatives"` Uids *[]DumpUIDType `json:"uids"` }
type DumpGamesData ¶
type DumpGamesData struct {
Games []DumpGame `json:"games"`
}
type DumpGamesDbDate ¶
func (*DumpGamesDbDate) MarshalJSON ¶
func (sd *DumpGamesDbDate) MarshalJSON() ([]byte, error)
func (*DumpGamesDbDate) UnmarshalJSON ¶
func (sd *DumpGamesDbDate) UnmarshalJSON(input []byte) error
type DumpImagesData ¶
type DumpIncludes ¶
type DumpIncludes struct { Platform DumpPlatformsData `json:"platform"` Images DumpImagesData `json:"boxart"` }
type DumpPlatform ¶
type DumpPlatformsData ¶
type DumpPlatformsData struct {
ByGameId map[string]DumpPlatform `json:"data"`
}
type DumpUIDType ¶
type Game ¶
type Game struct { ID int Title string Platform platform ReleaseDate *DumpGamesDbDate Overview NullString Youtube NullString Players NullInt IsCoop NullBool Rating NullString Developers []LookupItem Genres []LookupItem Publishers []LookupItem AlternateNames []string Uids []uidType Images []image }
func NewGame ¶
func NewGame(db *DumpDb, source *DumpGame, genres IntLookupItems, developers IntLookupItems, publishers IntLookupItems) Game
type Genres ¶
type Genres struct { Code int `json:"code"` Status string `json:"status"` Data GenresData `json:"data"` }
type GenresData ¶
type GenresData struct {
Genres StrLookupItems `json:"genres"`
}
type IntLookupItems ¶
type IntLookupItems map[int]LookupItem
type LookupItem ¶
type NullString ¶
type NullString sql.NullString
func (*NullString) MarshalJSON ¶
func (ns *NullString) MarshalJSON() ([]byte, error)
func (*NullString) UnmarshalJSON ¶
func (ns *NullString) UnmarshalJSON(data []byte) error
type Publishers ¶
type Publishers struct { Code int `json:"code"` Status string `json:"status"` Data PublishersData `json:"data"` }
type PublishersData ¶
type PublishersData struct {
Publishers StrLookupItems `json:"publishers"`
}
type StrLookupItems ¶
type StrLookupItems map[string]LookupItem
Click to show internal directories.
Click to hide internal directories.