lib

package
v0.0.0-...-e94c1b1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyDefaultSettings

func ApplyDefaultSettings(workingDir string) error

func ExistsCheck

func ExistsCheck(serverType string, version string) (bool, error)

func GetCacheDirectory

func GetCacheDirectory() string

func GetLatest

func GetLatest() (string, error)

func GetLatestPaperBuild

func GetLatestPaperBuild(version string) (int32, error)

func GetManifest

func GetManifest(from string, serverType string, version string) ([]byte, error)

func InstallServer

func InstallServer(version string, workingDir string, serverType string) error

func JarExists

func JarExists(version string, serverType string) bool

func RunTunnel

func RunTunnel(port *int) error

func UpdateManifest

func UpdateManifest(serverType string, version string) error

Types

type ForgeBuilds

type ForgeBuilds struct {
	Builds []string `json:"promos"`
}

type PackageInfo

type PackageInfo struct {
	Downloads struct {
		Server struct {
			Url string `json:"url"`
		}
	}
}

type PaperBuildInfo

type PaperBuildInfo struct {
	Downloads struct {
		Application struct {
			Name string `json:"name"`
		} `json:"application"`
	} `json:"downloads"`
}

type PaperBuilds

type PaperBuilds struct {
	Builds []int32 `json:"builds"`
}

type ReleaseInfo

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

type VersionInfo

type VersionInfo struct {
	Id          string `json:"id"`
	Type        string `json:"type"`
	Url         string `json:"url"`
	Time        string `json:"time"`
	ReleaseTime string `json:"releaseTime"`
}

Jump to

Keyboard shortcuts

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