Documentation ¶
Index ¶
Constants ¶
View Source
const FabricURLPrefix = "https://meta.fabricmc.net/v2/versions/loader"
View Source
const QuiltURLPrefix = "https://meta.quiltmc.org/v3/versions/loader"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetIndex ¶
type FabricMeta ¶
type FabricMeta struct { ID string `json:"id"` InheritsFrom string `json:"inheritsFrom"` ReleaseTime string `json:"releaseTime"` Time string `json:"time"` Type string `json:"type"` MainClass string `json:"mainClass"` Arguments struct { Game []any `json:"game"` Jvm []string `json:"jvm"` } `json:"arguments"` Libraries []Library }
func GetLoaderMeta ¶
func GetLoaderMeta(prefix string, gameVersion string) (FabricMeta, error)
type FabricVersionList ¶
type FabricVersionList []struct { Loader struct { Version string `json:"version"` } `json:"loader"` }
type Library ¶
type Library struct { Downloads struct { Artifact struct { Path string `json:"path"` Sha1 string `json:"sha1"` Size int `json:"size"` URL string `json:"url"` } `json:"artifact"` Classifiers struct { NativesMacOS Artifact `json:"natives-macos"` NativesLinux Artifact `json:"natives-linux"` NativesWindows Artifact `json:"natives-windows"` } `json:"classifiers"` } `json:"downloads"` Name string `json:"name"` Natives struct { Linux string `json:"linux"` MacOS string `json:"macos"` Windows string `json:"windows"` } URL string `json:"url"` Rules []struct { Action string `json:"action"` Os struct { Name string `json:"name"` } `json:"os"` } `json:"rules,omitempty"` }
type Project ¶
type Project struct { ClientSide string `json:"client_side"` ServerSide string `json:"server_side"` GameVersions []string `json:"game_versions"` ID string `json:"id"` Slug string `json:"slug"` ProjectType string `json:"project_type"` Team string `json:"team"` Organization string `json:"organization"` Title string `json:"title"` Description string `json:"description"` Body string `json:"body"` BodyURL interface{} `json:"body_url"` Published time.Time `json:"published"` Updated time.Time `json:"updated"` Approved time.Time `json:"approved"` Queued interface{} `json:"queued"` Status string `json:"status"` RequestedStatus interface{} `json:"requested_status"` ModeratorMessage interface{} `json:"moderator_message"` License struct { ID string `json:"id"` Name string `json:"name"` URL interface{} `json:"url"` } `json:"license"` Downloads int `json:"downloads"` Followers int `json:"followers"` Categories []string `json:"categories"` AdditionalCategories []interface{} `json:"additional_categories"` Loaders []string `json:"loaders"` Versions []string `json:"versions"` IconURL string `json:"icon_url"` IssuesURL string `json:"issues_url"` SourceURL string `json:"source_url"` WikiURL string `json:"wiki_url"` DiscordURL string `json:"discord_url"` DonationUrls []interface{} `json:"donation_urls"` Gallery []struct { URL string `json:"url"` Featured bool `json:"featured"` Title string `json:"title"` Description interface{} `json:"description"` Created time.Time `json:"created"` Ordering int `json:"ordering"` } `json:"gallery"` Color int `json:"color"` ThreadID string `json:"thread_id"` MonetizationStatus string `json:"monetization_status"` }
func GetModrinthProject ¶
type ProjectVersion ¶
type ProjectVersion struct { GameVersions []string `json:"game_versions"` Loaders []string `json:"loaders"` ID string `json:"id"` ProjectID string `json:"project_id"` AuthorID string `json:"author_id"` Featured bool `json:"featured"` Name string `json:"name"` VersionNumber string `json:"version_number"` Changelog string `json:"changelog"` ChangelogURL interface{} `json:"changelog_url"` DatePublished time.Time `json:"date_published"` Downloads int `json:"downloads"` VersionType string `json:"version_type"` Status string `json:"status"` RequestedStatus interface{} `json:"requested_status"` Files []struct { Hashes struct { Sha1 string `json:"sha1"` Sha512 string `json:"sha512"` } `json:"hashes"` URL string `json:"url"` Filename string `json:"filename"` Primary bool `json:"primary"` Size int `json:"size"` FileType interface{} `json:"file_type"` } `json:"files"` Dependencies []interface{} `json:"dependencies"` }
func GetModrinthProjVersion ¶
func GetModrinthProjVersion(id string, gameVersion string, loader string) (ProjectVersion, error)
type VersionManifest ¶
type VersionMeta ¶
type VersionMeta struct { Arguments struct { Game []any `json:"game"` Jvm []any `json:"jvm"` } `json:"arguments"` AssetIndex struct { ID string `json:"id"` Sha1 string `json:"sha1"` Size int `json:"size"` TotalSize int `json:"totalSize"` URL string `json:"url"` } `json:"assetIndex"` Assets string `json:"assets"` ComplianceLevel int `json:"complianceLevel"` Downloads struct { Client struct { Sha1 string `json:"sha1"` Size int `json:"size"` URL string `json:"url"` } `json:"client"` ClientMappings struct { Sha1 string `json:"sha1"` Size int `json:"size"` URL string `json:"url"` } `json:"client_mappings"` Server struct { Sha1 string `json:"sha1"` Size int `json:"size"` URL string `json:"url"` } `json:"server"` ServerMappings struct { Sha1 string `json:"sha1"` Size int `json:"size"` URL string `json:"url"` } `json:"server_mappings"` } `json:"downloads"` ID string `json:"id"` JavaVersion struct { Component string `json:"component"` MajorVersion int `json:"majorVersion"` } `json:"javaVersion"` Libraries []Library `json:"libraries"` Logging struct { Client struct { Argument string `json:"argument"` File struct { ID string `json:"id"` Sha1 string `json:"sha1"` Size int `json:"size"` URL string `json:"url"` } `json:"file"` Type string `json:"type"` } `json:"client"` } `json:"logging"` MainClass string `json:"mainClass"` MinimumLauncherVersion int `json:"minimumLauncherVersion"` ReleaseTime time.Time `json:"releaseTime"` Time time.Time `json:"time"` Type string `json:"type"` }
func GetVersionMeta ¶
func GetVersionMeta(id string) (VersionMeta, error)
Click to show internal directories.
Click to hide internal directories.