Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Version ¶
type Version struct { ID string `json:"id"` Type string `json:"type"` Time time.Time `json:"time"` ReleaseTime time.Time `json:"releaseTime"` MinimumLauncherVersion int `json:"minimumLauncherVersion"` MainClass string `json:"mainClass"` Downloads struct { Client *VersionDownload `json:"client"` ClientMappings *VersionDownload `json:"client_mappings"` Server *VersionDownload `json:"server"` ServerMappings *VersionDownload `json:"server_mappings"` } `json:"downloads"` }
type VersionDownload ¶
type VersionManifest ¶
type VersionManifest struct { Latest struct { Release string `json:"release"` Snapshot string `json:"snapshot"` } `json:"latest"` Versions []*VersionManifestVersion `json:"versions"` }
func GetVersionManifest ¶
func GetVersionManifest(httpClient *http.Client) (*VersionManifest, error)
func (*VersionManifest) FindVersion ¶
func (m *VersionManifest) FindVersion(id string) *VersionManifestVersion
Click to show internal directories.
Click to hide internal directories.