mcmhttp

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APPTITLE string

APPTITLE is the name of app displayed in the web UI

View Source
var HOSTNAME string

HOSTNAME is the name of the host as displayed with the port in the web UI

Functions

func Listen

func Listen(appTitle, addr string, webfiles *fs.FS, hostname string) error

Listen starts the Gin web server

Types

type PageData

type PageData struct {
	Authenticated bool
	PlayerName    string
	AppTitle      string
	Hostname      string
	Page          string
	Releases      struct {
		Flavors []string
		Vanilla releases.VersionFile
		Paper   releases.VersionFile
	}
	//Servers map[string]server.WebView
	Status struct {
		Uptime string
	}
}

PageData defines data that is passed to HTML templates

Jump to

Keyboard shortcuts

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