releases

package
v0.0.0-...-b33f08c Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FLAVORS = []string{"vanilla", "spigot", "paper"}

FLAVORS is a list of our supported server flavors

Functions

func FlavorIsValid

func FlavorIsValid(flavor string) bool

FlavorIsValid returns if a given flavor is in the list of FLAVORS

Types

type Version

type Version struct {
	ID          string `json:"id"`
	Type        string `json:"type"`
	URL         string `json:"url"`
	ReleaseTime string `json:"releaseTime"`
	Build       int    `json:"build"`
}

Version is the (important) fields for each release

type VersionFile

type VersionFile struct {
	Latest struct {
		Release  string `json:"release"`
		Snapshot string `json:"snapshot"`
	} `json:"latest"`
	Versions []Version `json:"versions"`
}

VersionFile is the structure of the version_manifest.json file

Jump to

Keyboard shortcuts

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