Documentation ¶
Overview ¶
Package gdb interacts with thegamedb.net's API.
Example:
resp, err := gdb.GetGame(GGReq{ID: "5"})
Index ¶
Constants ¶
View Source
const ( GDBURL = "http://thegamesdb.net" GGPath = "/api/GetGame.php" GGLPath = "/api/GetGamesList.php" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GGLResp ¶
func GetGameList ¶
GetGameList gets the game information from the DB.
type GGResp ¶
type GGResp struct { XMLName xml.Name ImageURL string `xml:"baseImgUrl"` Game []Game // contains filtered or unexported fields }
GGResp is the response of the GetGame query.
type Game ¶
type Game struct { ID string `xml:"id"` GameTitle string Overview string ReleaseDate string Platform string Developer string Publisher string Genres []string `xml:"Genres>genre"` Players string Rating float64 ESRB string AltTitles []string `xml:"AlternateTitles>title"` BoxArt []Image `xml:"Images>boxart"` ClearLogo []Image `xml:"Images>clearlogo"` Banner []Image `xml:"Images>banner"` FanArt []OImage `xml:"Images>fanart"` Screenshot []OImage `xml:"Images>screenshot"` }
Game is used to parse the GetGame's <Game> tag.
Click to show internal directories.
Click to hide internal directories.