config

package
v0.0.0-...-b6f29c3 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 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"`
	DbioDefs          string `toml:"dbio_defs"`
	Version           int    `toml:"version"`
	Port              int    `toml:"port"`
	MaxPlayers        int    `toml:"max_players"`
	PacketHandlerFile string `toml:"packet_handler_table"`
	Database          struct {
		PlayerDriver string `toml:"player_driver"`
		WorldDriver  string `toml:"world_driver"`
		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.

View Source
var Verbosity = int(0)

Verbosity Represents the level of verbosity with which the game should output debug information.

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 PlayerDriver

func PlayerDriver() string

func Port

func Port() int

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

func Verbose

func Verbose() bool

Verbose Returns true if the current Verbosity level is above 0, otherwise returns false.

func Version

func Version() int

func WSPort

func WSPort() int

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

func WorldDB

func WorldDB() string

func WorldDriver

func WorldDriver() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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