adb

package
v1.4.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("rom not found")

ErrNotFound is returned when a game is not found.

View Source
var Source = "adb.arcadeitalia.net"

Functions

This section is empty.

Types

type GameResp

type GameResp struct {
	Results []Result `json:"result"`
}

func GetGame

func GetGame(ctx context.Context, name string) (*GameResp, error)

GetGame gets a game from mamedb.

type Result

type Result struct {
	ID             string `json:"game_name"`
	Genre          string `json:"genre"`
	History        string `json:"history"`
	CopyRightLong  string `json:"history_copyright_long"`
	CopyRightShort string `json:"history_copyright_short"`
	Manufacturer   string `json:"manufacturer"`
	Players        int64  `json:"players"`
	Name           string `json:"title"`
	Cabinet        string `json:"url_image_cabinet"`
	Snap           string `json:"url_image_ingame"`
	Marquee        string `json:"url_image_marquee"`
	Title          string `json:"url_image_title"`
	Flyer          string `json:"url_image_flyer"`
	Year           string `json:"year"`
	CloneOf        string `json:"cloneof"`
	Video          string `json:"url_video_shortplay"`
	Rating         int64  `json:"rate"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL