config

package
v0.0.0-...-45a5ef6 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2014 License: GPL-3.0 Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheType

type CacheType struct {
	Host     string
	Port     int
	Password string
}

type ConfigObject

type ConfigObject struct {
	LoginServer LoginServerType
	GameServers []GameServerType
}

func Read

func Read() ConfigObject

type DatabaseType

type DatabaseType struct {
	Name     string
	Host     string
	Port     int
	User     string
	Password string
}

type GameServerConfigObject

type GameServerConfigObject struct {
	LoginServer LoginServerType
	GameServer  GameServerType
}

type GameServerType

type GameServerType struct {
	Name       string
	InternalIP string
	ExternalIP string
	Port       int
	Database   DatabaseType
	Cache      CacheType
	Options    OptionsType
}

type LoginServerType

type LoginServerType struct {
	Host       string
	AutoCreate bool
	Database   DatabaseType
}

type OptionsType

type OptionsType struct {
	MaxPlayers uint16
	Testing    bool
}

Jump to

Keyboard shortcuts

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