config

package
v0.0.0-...-c047542 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Player

type Player struct{}

Player represents the configuration for a player (Not currently used for anything).

type Structure

type Structure struct {
	Listener struct {
		Host string
		Port int
	}
	Minecraft struct {
		Auth       bool
		Motd       string
		MaxPlayers int
	}
	Fallback struct {
		Enabled bool
		Host    string
		Port    int
	}
	Lobby struct {
		Enabled bool
		Host    string
		Port    int
	}
	Debug struct {
		Logging   bool
		Profiling struct {
			PPROF struct {
				Enabled bool
				Address string
			}
			GOSIVY struct {
				Enabled bool
				Address string
			}
		}
	}
	Security struct {
		Secret string
	}
}

Config is a parsed configuration file for the proxy.

var Config Structure = Structure{}

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