config

package
v0.0.0-...-1047d84 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: ISC Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TomlConfig struct {
	DataDir           string `toml:"data_directory"`
	Version           int    `toml:"version"`
	Port              int    `toml:"port"`
	MaxPlayers        int    `toml:"max_players"`
	PacketHandlerFile string `toml:"packet_handler_table"`
	Database          struct {
		PlayerDB string `toml:"player_db"`
		WorldDB  string `toml:"world_db"`
	} `toml:"database"`
	Crypto struct {
		RsaKeyFile     string `toml:"rsa_key"`
		HashSalt       string `toml:"hash_salt"`
		HashComplexity int    `toml:"hash_complexity"`
		HashMemory     int    `toml:"hash_memory"`
		HashLength     int    `toml:"hash_length"`
	} `toml:"crypto"`
}

TomlConfig A data structure representing the RSCGo TOML configuration file.

Functions

func DataDir

func DataDir() string

func HashComplexity

func HashComplexity() int

func HashLength

func HashLength() int

func HashMemory

func HashMemory() int

func HashSalt

func HashSalt() string

func MaxPlayers

func MaxPlayers() int

func PacketHandlers

func PacketHandlers() string

func PlayerDB

func PlayerDB() string

func Port

func Port() int

Port Returns the primary TCP/IP port to listen for incoming connections on

func RsaKey

func RsaKey() string

func Version

func Version() int

func WorldDB

func WorldDB() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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