Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultApiUrl string = "https://www.doomworld.com/idgames/api/api.php"
Variables ¶
View Source
var Mirrors = []Mirror{
{"Gamers.org", "US", "http://www.gamers.org/pub/idgames/"},
{"Syringa Networks", "US", "ftp://mirrors.syringanetworks.net/idgames/"},
{"Mancubus", "US", "http://ftp.mancubus.net/pub/idgames/"},
{"youfailit", "US", "http://youfailit.net/pub/idgames/"},
{"Quaddicted", "DE", "https://www.quaddicted.com/files/idgames/"},
{"University of Athens", "GR", "http://ftp.ntua.gr/mirror/idgames/idstuff/"},
}
Functions ¶
This section is empty.
Types ¶
type Date ¶
Date is a holder for a Time value that can be parsed from a date-only string within a JSON document.
func (*Date) UnmarshalJSON ¶
type File ¶
type File struct { ID int `json:"id"` Author stringy `json:"author"` Date *Date `json:"date"` Description string `json:"description"` Directory string `json:"dir"` Email string `json:"email"` Filename string `json:"filename"` IdGamesURL string `json:"idgamesurl"` Rating float32 `json:"rating"` Size int `json:"size"` Title stringy `json:"title"` URL string `json:"url"` Votes int `json:"votes"` }
File is an entry in the idgames repository.
func FetchFiles ¶
FetchFiles returns a list of files in the given path.
func (File) GetMirrorURL ¶
GetMirrorURL returns a URL for this file, given an appropriate idgames mirror URL.
Click to show internal directories.
Click to hide internal directories.