conf

package
v0.0.0-...-771882a Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {
	DefaultWorld string `toml:"default-world"`
	SendPlayers  bool   `toml:"send-players"`
	OnlineMode   bool   `toml:"online-mode"`
	DebugPackets bool   `toml:"debug-packets"`
}

type Motd

type Motd struct {
	Line    string `toml:"motd"`
	Favicon string `toml:"favicon"`

	Max    int `toml:"max"`
	Online int `toml:"online"`
}

type Network

type Network struct {
	Host        string `toml:"host"`
	Port        int    `toml:"port"`
	Compression int    `toml:"compression-threshold"`
}

type ServerConfig

type ServerConfig struct {
	Network Network
	Motd    Motd
	Game    Game
}

func CreateDefaultConf

func CreateDefaultConf() ServerConfig

Jump to

Keyboard shortcuts

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