config

package
v0.0.0-...-4859cea Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = LoadConfig()

Functions

This section is empty.

Types

type Structure

type Structure struct {
	Listener struct {
		Host string
		Port int
	}
	Minecraft struct {
		Auth        bool
		Motd        string
		ShowVersion bool
		MaxPlayers  int
	}
	Fallback struct {
		Enabled bool
		Host    string
		Port    int
	}
	Lobby struct {
		Enabled bool
		Host    string
		Port    int
	}
	Debug struct {
		Logging   bool
		Profiling bool
	}
	Proxy struct {
		Secret string
	}
}

Config is a parsed configuration file for the proxy.

func DefaultConfig

func DefaultConfig() Structure

DefaultConfig returns the default configuration for the proxy & generates a unique secret.

func LoadConfig

func LoadConfig() (config Structure)

LoadConfig loads and parses the configuration for the proxy.

Jump to

Keyboard shortcuts

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