Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mod ¶
type Mod struct { ID string `json:"id"` //The ID of the mod, encoded as a base62 string Slug string `json:"slug"` //The slug of a mod, used for vanity URLs Team string `json:"team"` //The id of the team that has ownership of this mod Title string `json:"title"` //The title or name of the mod Description string `json:"description"` //A short description of the mod Body string `json:"body"` //A long form description of the mod. BodyUrl string `json:"body_url"` //DEPRECATED The link to the long description of the mod (Optional) Published string `json:"published"` //The date at which the mod was first published Updated string `json:"updated"` //The date at which the mod was updated Status string `json:"status"` //The status of the mod - approved, rejected, draft, unlisted, processing, or unknown License struct { ID string `json:"id"` Name string `json:"name"` URL string `json:"url"` } `json:"license"` ClientSide string `json:"client_side"` //The support range for the client mod - required, optional, unsupported, or unknown ServerSide string `json:"server_side"` //The support range for the server mod - required, optional, unsupported, or unknown Downloads int `json:"downloads"` //The total number of downloads the mod has Categories []string `json:"categories"` //A list of the categories that the mod is in Versions []string `json:"versions"` //A list of ids for versions of the mod IconUrl string `json:"icon_url"` //The URL of the icon of the mod (Optional) IssuesUrl string `json:"issues_url"` //An optional link to where to submit bugs or issues with the mod (Optional) SourceUrl string `json:"source_url"` //An optional link to the source code for the mod (Optional) WikiUrl string `json:"wiki_url"` //An optional link to the mod's wiki page or other relevant information (Optional) DiscordUrl string `json:"discord_url"` //An optional link to the mod's discord (Optional) }
type ModResult ¶
type ModResult struct { ModID string `json:"mod_id"` //The id of the mod; prefixed with local- ProjectType string `json:"project_id"` //The project type of the mod Author string `json:"author"` //The username of the author of the mod Title string `json:"title"` //The name of the mod Description string `json:"description"` //A short description of the mod Categories []string `json:"categories"` //A list of the categories the mod is in Versions []string `json:"versions"` //A list of the minecraft versions supported by the mod Downloads int `json:"downloads"` //The total number of downloads for the mod PageUrl string `json:"page_url"` //A link to the mod's main page; IconUrl string `json:"icon_url"` //The url of the mod's icon AuthorUrl string `json:"author_url"` //The url of the mod's author DateCreated string `json:"date_created"` //The date that the mod was originally created DateModified string `json:"date_modified"` //The date that the mod was last modified LatestVersion string `json:"latest_version"` //The latest version of minecraft that this mod supports License string `json:"license"` //The id of the license this mod follows ClientSide string `json:"client_side"` //The side type id that this mod is on the client ServerSide string `json:"server_side"` //The side type id that this mod is on the server Host string `json:"host"` //The host that this mod is from, always modrinth }
type ModSearchResult ¶
type ModSearchResult struct { Hits []ModResult `json:"hits"` //The list of results Offset int `json:"offset"` //The number of results that were skipped by the query Limit int `json:"limit"` //The number of mods returned by the query TotalHits int `json:"total_hits"` //The total number of mods that the query found }
type Version ¶
type Version struct { ID string `json:"id"` //The ID of the version, encoded as a base62 string ModID string `json:"mod_id"` //The ID of the mod this version is for AuthorId string `json:"author_id"` //The ID of the author who published this version Featured bool `json:"featured"` //Whether the version is featured or not Name string `json:"name"` //The name of this version VersionNumber string `json:"version_number"` //The version number. Ideally will follow semantic versioning Changelog string `json:"changelog"` //The changelog for this version of the mod. (Optional) DatePublished string `json:"date_published"` //The date that this version was published Downloads int `json:"downloads"` //The number of downloads this specific version has VersionType string `json:"version_type"` //The type of the release - alpha, beta, or release Files []VersionFile `json:"files"` //A list of files available for download for this version //Dependencies []string `json:"dependencies"` //A list of specific versions of mods that this version depends on GameVersions []string `json:"game_versions"` //A list of versions of Minecraft that this version of the mod supports Loaders []string `json:"loaders"` //The mod loaders that this version supports }
type VersionFile ¶
Click to show internal directories.
Click to hide internal directories.