magma

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiURL = fmt.Sprintf("https://api.magmafoundation.org/api/v%d/", ApiVersion)
View Source
var ApiVersion = 2

Functions

func GetVersionDownload

func GetVersionDownload(version string, tag string, path string) (*mcsrvapi.DownloadChecksums, error)

func GetVersionReleases

func GetVersionReleases(version string) (*[]MagmaRelease, error)

func GetVersions

func GetVersions() ([]string, error)

Types

type MagmaRelease

type MagmaRelease struct {
	Name          string    `json:"name"`
	TagName       string    `json:"tag_name"`
	CreatedAt     time.Time `json:"created_at"`
	Link          string    `json:"link"`
	InstallerLink string    `json:"installer_link"`
	GitCommitURL  string    `json:"git_commit_url"`
	Archived      bool      `json:"archived"`
}

Jump to

Keyboard shortcuts

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