Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultAPI = API{}
Functions ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) FindAddons ¶
func (api *API) FindAddons(query string, typ uint) ([]AddonSearch, error)
type AddonAttachment ¶
type AddonFile ¶
type AddonSearch ¶
type AddonSearch struct { ID int `json:"id"` Name string `json:"name"` Summary string `json:"summary"` WebsiteURL string `json:"websiteUrl"` Slug string `json:"slug"` DownloadCount float64 `json:"downloadCount"` PopularityScore float64 `json:"popularityScore"` GamePopularityRank int64 `json:"gamePopularityRank"` Attachments []AddonAttachment `json:"attachments"` CategorySection AddonSection LatestFiles []AddonFile }
type AddonSection ¶
type AddonSection struct {
PackageType int `json:"packageType"`
}
type ModpackFile ¶
type ModpackManifest ¶
type ModpackManifest struct { Minecraft struct { Version string `json:"version"` } `json:"minecraft"` Name string `json:"name"` Version string `json:"version"` Files []ModpackFile `json:"files"` }
Click to show internal directories.
Click to hide internal directories.