Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultURL = "https://gazellegames.net/api.php"
Variables ¶
View Source
var ErrForbidden = errors.New("forbidden")
View Source
var ErrTooManyRequests = errors.New("too many requests: rate-limit reached")
Functions ¶
This section is empty.
Types ¶
type ApiClient ¶
type Client ¶
type Client struct { APIKey string // contains filtered or unexported fields }
func (*Client) GetTorrentByID ¶
type GameInfo ¶
type GameInfo struct { Screenshots []string `json:"screenshots"` Trailer string `json:"trailer"` Rating string `json:"rating"` MetaRating struct { Score string `json:"score"` Percent string `json:"percent"` Link string `json:"link"` } `json:"metaRating"` IgnRating struct { Score string `json:"score"` Percent string `json:"percent"` Link string `json:"link"` } `json:"ignRating"` GamespotRating struct { Score string `json:"score"` Percent string `json:"percent"` Link string `json:"link"` } `json:"gamespotRating"` Weblinks struct { GamesWebsite string `json:"GamesWebsite"` Wikipedia string `json:"Wikipedia"` Giantbomb string `json:"Giantbomb"` GameFAQs string `json:"GameFAQs"` PCGamingWiki string `json:"PCGamingWiki"` Steam string `json:"Steam"` Amazon string `json:"Amazon"` GOG string `json:"GOG"` HowLongToBeat string `json:"HowLongToBeat"` } `json:"weblinks"` }
type Group ¶
type Group struct { BbWikiBody string `json:"bbWikiBody"` WikiBody string `json:"wikiBody"` WikiImage string `json:"wikiImage"` Id int `json:"id"` Name string `json:"name"` Aliases []string `json:"aliases"` Year int `json:"year"` CategoryId int `json:"categoryId"` CategoryName string `json:"categoryName"` MasterGroup int `json:"masterGroup"` Time string `json:"time"` Tags []string `json:"tags"` Platform string `json:"platform"` }
type Response ¶
type Response struct { Status string `json:"status"` Response TorrentResponse `json:"response,omitempty"` Error string `json:"error,omitempty"` }
type Torrent ¶
type Torrent struct { Id int `json:"id"` InfoHash string `json:"infoHash"` Type string `json:"type"` Link string `json:"link"` Format string `json:"format"` Encoding string `json:"encoding"` Region string `json:"region"` Language string `json:"language"` Remastered bool `json:"remastered"` RemasterYear int `json:"remasterYear"` RemasterTitle string `json:"remasterTitle"` Scene bool `json:"scene"` HasCue bool `json:"hasCue"` ReleaseTitle string `json:"releaseTitle"` ReleaseType string `json:"releaseType"` GameDOXType string `json:"gameDOXType"` GameDOXVersion string `json:"gameDOXVersion"` FileCount int `json:"fileCount"` Size uint64 `json:"size"` Seeders int `json:"seeders"` Leechers int `json:"leechers"` Snatched int `json:"snatched"` FreeTorrent bool `json:"freeTorrent"` NeutralTorrent bool `json:"neutralTorrent"` Reported bool `json:"reported"` Time string `json:"time"` BbDescription string `json:"bbDescription"` Description string `json:"description"` FileList []struct { Ext string `json:"ext"` Size string `json:"size"` Name string `json:"name"` } `json:"fileList"` FilePath string `json:"filePath"` UserId int `json:"userId"` Username string `json:"username"` }
type TorrentResponse ¶
Click to show internal directories.
Click to hide internal directories.