shared

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LatestForgeMavenVersion

func LatestForgeMavenVersion(m MavenMeta, mc string) (string, bool)

func LatestMavenVersion

func LatestMavenVersion(m MavenMeta, mc string) (string, bool)

func LatestNeoForgeMavenVersion

func LatestNeoForgeMavenVersion(m MavenMeta, mc string) (string, bool)

Types

type ApiMetaVersioning

type ApiMetaVersioning struct {
	Text        string                      `xml:",chardata"`
	Latest      string                      `xml:"latest"`
	Release     string                      `xml:"release"`
	Versions    MavenMetaVersioningVersions `xml:"versions"`
	LastUpdated string                      `xml:"lastUpdated"`
}

type GameVersionMeta

type GameVersionMeta struct {
	Version string `json:"version"`
	Stable  bool   `json:"stable"`
}

type LoaderVersionMeta

type LoaderVersionMeta struct {
	Separator string `json:"separator"`
	Build     int    `json:"build"`
	Maven     string `json:"maven"`
	Version   string `json:"version"`
	Stable    bool   `json:"stable"`
}

type MavenMeta

type MavenMeta struct {
	XMLName    xml.Name          `xml:"metadata"`
	Text       string            `xml:",chardata"`
	GroupId    string            `xml:"groupId"`
	ArtifactId string            `xml:"artifactId"`
	Versioning ApiMetaVersioning `xml:"versioning"`
}

type MavenMetaVersioningVersions

type MavenMetaVersioningVersions struct {
	Text    string   `xml:",chardata"`
	Version []string `xml:"version"`
}

type ModrinthVersion added in v0.0.11

type ModrinthVersion struct {
	GameVersions  []string        `json:"game_versions"`
	Loaders       []string        `json:"loaders"`
	VersionNumber *semver.Version `json:"version_number"`
}

func (ModrinthVersion) GetVersion added in v0.0.11

func (v ModrinthVersion) GetVersion() string

type ModrinthVersionList added in v0.0.11

type ModrinthVersionList []ModrinthVersion

func (ModrinthVersionList) FilterGameVersions added in v0.0.11

func (m ModrinthVersionList) FilterGameVersions(gameVersion string) ModrinthVersionList

func (ModrinthVersionList) GetLatest added in v0.0.11

func (m ModrinthVersionList) GetLatest() string

type YarnVersionMeta

type YarnVersionMeta struct {
	GameVersion string `json:"gameVersion"`
	Separator   string `json:"separator"`
	Build       int    `json:"build"`
	Maven       string `json:"maven"`
	Version     string `json:"version"`
	Stable      bool   `json:"stable"`
}

func LatestYarnVersion

func LatestYarnVersion(v []YarnVersionMeta, mc string) (YarnVersionMeta, bool)

Jump to

Keyboard shortcuts

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