config

package
v0.0.0-...-dd4db30 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2014 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VERSION = "0.1.0-git" // Current software version
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Database struct {
		Driver           string
		ConnectionString string `toml:"connection_string"`
	} `toml:"database"`
	Redis struct {
		Address  string
		Password string
		Database int
	} `toml:"redis"`
	NP struct {
		Enabled          bool
		BindingAddress   string `toml:"binding_address"`
		PubFilesPath     string `toml:"pub_files_path"`
		UserFilesPath    string `toml:"user_files_path"`
		AvatarsPath      string `toml:"avatars_path"`
		AnticheatKeyPath string `toml:"anticheat_key_path"`
		AnticheatInstant bool   `toml:"anticheat_instant"`
	} `toml:"np"`
	NewRelic struct {
		Enabled bool
		Verbose bool
		License string
		Name    string
	} `toml:"new_relic"`
	HTTP struct {
		Enabled        bool
		BindingAddress string `toml:"binding_address"`
	} `toml:"http"`
	PlayerLog struct {
		Enabled bool
		Path    string
	} `toml:"player_log"`
	Misc struct {
		Enabled        bool
		BindingAddress string `toml:"binding_address"`
	} `toml:"misc"`
	FTP struct {
		Enabled  bool   `toml:"enabled"`
		Hostname string `toml:"hostname"`
		Port     int    `toml:"port"`
		Path     string `toml:"path"`
		Username string `toml:"username"`
		Password string `toml:"password"`
	} `toml:"ftp"`
}

func Load

func Load(path string) *Config

Jump to

Keyboard shortcuts

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