Documentation ¶
Index ¶
- Variables
- type LatestVanillaJavaManifestVersion
- type VanillaJavaManifest
- func (m *VanillaJavaManifest) ClientDownload(version string, path string) (*mcsrvapi.DownloadChecksums, error)
- func (m *VanillaJavaManifest) GetManifestVersion(version string) (*VanillaJavaManifestVersion, error)
- func (m *VanillaJavaManifest) GetVersion(version string) (*VanillaJavaVersion, error)
- func (m *VanillaJavaManifest) ServerDownload(version string, path string) (*mcsrvapi.DownloadChecksums, error)
- type VanillaJavaManifestVersion
- type VanillaJavaVersion
- type VanillaJavaVersionDownload
- type VanillaJavaVersionDownloads
Constants ¶
This section is empty.
Variables ¶
View Source
var ApiURL = "https://piston-meta.mojang.com/mc/game/version_manifest_v2.json"
View Source
var ErrNotFound = errors.New("mc version not found")
Functions ¶
This section is empty.
Types ¶
type VanillaJavaManifest ¶
type VanillaJavaManifest struct { Latest LatestVanillaJavaManifestVersion `json:"latest"` Versions []VanillaJavaManifestVersion `json:"versions"` }
func GetManifest ¶
func GetManifest() (*VanillaJavaManifest, error)
func (*VanillaJavaManifest) ClientDownload ¶
func (m *VanillaJavaManifest) ClientDownload(version string, path string) (*mcsrvapi.DownloadChecksums, error)
func (*VanillaJavaManifest) GetManifestVersion ¶
func (m *VanillaJavaManifest) GetManifestVersion(version string) (*VanillaJavaManifestVersion, error)
func (*VanillaJavaManifest) GetVersion ¶
func (m *VanillaJavaManifest) GetVersion(version string) (*VanillaJavaVersion, error)
func (*VanillaJavaManifest) ServerDownload ¶
func (m *VanillaJavaManifest) ServerDownload(version string, path string) (*mcsrvapi.DownloadChecksums, error)
type VanillaJavaVersion ¶
type VanillaJavaVersion struct {
Downloads VanillaJavaVersionDownloads
}
type VanillaJavaVersionDownloads ¶
type VanillaJavaVersionDownloads struct { Client VanillaJavaVersionDownload `json:"client"` ClientMappings VanillaJavaVersionDownload `json:"client_mappings"` Server VanillaJavaVersionDownload `json:"server"` ServerMappings VanillaJavaVersionDownload `json:"server_mappings"` }
Click to show internal directories.
Click to hide internal directories.