Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound is the error returned when a ROM isn't found.
Functions ¶
func SanitizeURL ¶ added in v1.2.1
Types ¶
type DevInfo ¶
DevInfo is the information about the developer and used across APIs.
func DeobfuscateDevInfo ¶ added in v1.2.0
type Game ¶
type Game struct {
Synopsis map[string]string `json:"synopsis"`
ID string `json:"id"`
Name string `json:"nom"`
Names map[string]string `json:"noms"`
Regions []string `json:"regionshortnames"`
Publisher string `json:"editeur"`
Developer string `json:"developpeur"`
Players string `json:"joueurs"`
Rating string `json:"note"`
Dates map[string]string `json:"dates"`
Genres map[string][]string `json:"genres:`
Media Media `json:"medias"`
ROMs []ROM `json:"roms"`
}
func (Game) ROM ¶ added in v1.2.1
func (g Game) ROM(req GameInfoReq) ROM
type GameInfoReq ¶
GameInfoReq is the information we use in the GameInfo command.
type GameInfoResp ¶
type GameInfoResp struct {
Response Response `json:"response"`
}
func GameInfo ¶
func GameInfo(dev DevInfo, user UserInfo, req GameInfoReq) (*GameInfoResp, error)
GameInfo is the call to get game info.
type Media ¶ added in v1.2.1
type ROM ¶ added in v1.2.1
type UserInfoResp ¶ added in v1.2.1
type UserInfoResp struct {
ID string `xml:"ssuser>id"`
Level int `xml:"ssuser>niveau"`
Contribution int `xml:"ssuser>contribution"`
UploadedSystems int `xml:"ssuser>uploadsysteme"`
UploadedInfo int `xml:"ssuser>uploadinfos"`
ROMsAssociated int `xml:"ssuser>romasso"`
UpdatedMedia int `xml:"ssuser>uploadmedia"`
FavoriteRegion string `xml:"ssuser>favregion"`
MaxThreads int `xml:"ssuser>maxthreads"`
}
Click to show internal directories.
Click to hide internal directories.