config

package
v0.0.0-...-974f061 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2019 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiConfig

type ApiConfig struct {
	Listen          string
	Port            int
	Db              DBConfig
	RequireInvite   bool
	AuthTokenExpiry int
	CheckTimeout    int
	CheckInterval   int
	Verbosity       int
}

type Config

type Config struct {
	Api     ApiConfig
	Realmd  RealmdConfig
	Mangosd []MangosdConfig
}
var Settings Config

func Read

func Read(file string) (Config, error)

type DBConfig

type DBConfig struct {
	Username string
	Password string
	Address  string
	Port     int
	Database string
}

type MangosdConfig

type MangosdConfig struct {
	Id          int
	CharacterDb DBConfig
	WorldDb     DBConfig
}

type RealmdConfig

type RealmdConfig struct {
	Address string
	Port    int
	Db      DBConfig
}

Jump to

Keyboard shortcuts

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