mojangdl

package
v1.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const VERSION_JSON = "https://launchermeta.mojang.com/mc/game/version_manifest.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type MojangDl

type MojangDl struct {
	Version string
	Target  string
}

func (MojangDl) Run

func (op MojangDl) Run(env environments.Environment) error

type MojangDlOperationFactory

type MojangDlOperationFactory struct {
}

func (MojangDlOperationFactory) Create

func (MojangDlOperationFactory) Key

type MojangDownloadType

type MojangDownloadType struct {
	Sha1 string `json:"sha1"`
	Size uint64 `json:"size"`
	Url  string `json:"url"`
}

type MojangLatest

type MojangLatest struct {
	Release  string `json:"release"`
	Snapshot string `json:"snapshot"`
}

type MojangLauncherJson

type MojangLauncherJson struct {
	Versions []MojangLauncherVersion `json:"versions"`
	Latest   MojangLatest            `json:"latest"`
}

type MojangLauncherVersion

type MojangLauncherVersion struct {
	Id   string `json:"id"`
	Url  string `json:"url"`
	Type string `json:"type"`
}

type MojangVersionJson

type MojangVersionJson struct {
	Downloads map[string]MojangDownloadType `json:"downloads"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL