Documentation ¶
Index ¶
- Variables
- func ObfuscateDevInfo(info DevInfo) (string, error)
- func SanitizeURL(s string) string
- func Threads(ctx context.Context, dev DevInfo, user UserInfo) int
- type BoxArt
- type DevInfo
- type Game
- type GameInfoReq
- type GameInfoResp
- type Media
- type ROM
- type Response
- type SafeStringMap
- type Support
- type UserInfo
- type UserInfoResp
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 ObfuscateDevInfo ¶ added in v1.4.0
func SanitizeURL ¶ added in v1.2.1
Types ¶
type BoxArt ¶ added in v1.2.1
type BoxArt struct { Box2D SafeStringMap `json:"media_boxs2d"` Box3D SafeStringMap `json:"media_boxs3d"` }
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 SafeStringMap `json:"synopsis"` ID string `json:"id"` Name string `json:"nom"` Names SafeStringMap `json:"noms"` Regions []string `json:"regionshortnames"` Publisher string `json:"editeur"` Developer string `json:"developpeur"` Players string `json:"joueurs"` Rating string `json:"note"` Dates SafeStringMap `json:"dates"` Genres map[string]json.RawMessage `json:"genres:` Media Media `json:"medias"` ROMs []ROM `json:"roms"` // contains filtered or unexported fields }
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(ctx context.Context, dev DevInfo, user UserInfo, req GameInfoReq) (*GameInfoResp, error)
GameInfo is the call to get game info.
type Media ¶ added in v1.2.1
type Media struct { Screenshot string `json:"media_screenshot"` ScreenMarquee string `json:"media_screenmarquee"` Marquee string `json:"media_marquee"` Video string `json:"media_video"` Flyers SafeStringMap `json:"media_flyers"` BoxArt BoxArt `json:"media_boxs"` Wheels SafeStringMap `json:"media_wheels"` Supports Support `json:"media_supports"` }
type ROM ¶ added in v1.2.1
type SafeStringMap ¶ added in v1.2.3
func (*SafeStringMap) UnmarshalJSON ¶ added in v1.2.3
func (s *SafeStringMap) UnmarshalJSON(b []byte) error
type Support ¶ added in v1.4.4
type Support struct { Support2Ds SafeStringMap `json:"media_supports2d"` SupportLabels SafeStringMap `json:"media_supportstexture"` }
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.