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.
Click to show internal directories.
Click to hide internal directories.