pin

package
v1.0.39 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package pin downloads one checksummed Geyser standalone jar.

Index

Constants

View Source
const (
	// URL is Geyser standalone 2.12.0 build 1265. The entrypoint must not
	// follow a floating "latest" URL (MINE-187).
	URL      = "https://download.geysermc.org/v2/projects/geyser/versions/2.12.0/builds/1265/downloads/standalone"
	SHA256   = "3e235b5112110665a53ed3b42c0b8d514021c50184c01380aa5b01d52ee1f636"
	MaxBytes = 80 << 20
)

Variables

View Source
var (
	FloodgateURL      = "https://download.geysermc.org/v2/projects/floodgate/versions/2.2.5/builds/141/downloads/spigot"
	FloodgateSHA256   = "21570aff9ce17d6983928e8552777760e1ede5050026b04c686b0ae112e6fd7e"
	FloodgateMaxBytes = int64(20 << 20)
)

Floodgate Spigot 2.2.5 build 141. Vars so tests can point Fetch at a local server. Production values stay pinned (MINE-195).

Functions

func Fetch

func Fetch(client *http.Client, rawURL, dest, wantSHA string, maxBytes int64) error

Fetch writes rawURL to dest when the body matches wantSHA and every redirect stays on download.geysermc.org.

func InstallFloodgate

func InstallFloodgate(pluginsDir string, client *http.Client) error

InstallFloodgate downloads the pinned Floodgate Spigot jar into pluginsDir when that directory exists and the jar is not already there.

func RemoteAuthType

func RemoteAuthType(raw, allowOffline string) (string, error)

RemoteAuthType defaults to floodgate. Offline auth lets a Bedrock client claim any Java name, so it stays off unless allowOffline is true.

Types

This section is empty.

Jump to

Keyboard shortcuts

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