Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ BaseDomain: "example.com", AutoSignUp: true, PassSignIn: false, HTTPServer: HTTPServerConfig{ Enable: true, Addr: "0.0.0.0:8080", TLS: TLSConfig{Enable: false}, }, GateServer: []GateServerConfig{{ Name: "os_beta01", Title: "127.0.0.1:22101", DispatchUrl: "http://127.0.0.1:8080/query_cur_region", }, { Name: "os_beta02", Title: "127.0.0.1:22102", Addr: "127.0.0.1:22102", }}, GameServer: GameServerConfig{ Enable: true, Addr: "0.0.0.0:22102", }, Database: DatabaseConfig{ Driver: "sqlite", DSN: "file:data/hk4e-emu.db?cache=shared&mode=rwc", }, }
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { BaseDomain string `mapstructure:"baseDomain"` AutoSignUp bool `mapstructure:"autoSignUp"` PassSignIn bool `mapstructure:"passSignIn"` HTTPServer HTTPServerConfig `mapstructure:"httpServer"` GateServer []GateServerConfig `mapstructure:"gateServer"` GameServer GameServerConfig `mapstructure:"gameServer"` Database DatabaseConfig `mapstructure:"database"` }
func LoadConfig ¶
func LoadConfig() (cfg Config)
type DatabaseConfig ¶
type GameServerConfig ¶
type GateServerConfig ¶
type HTTPServerConfig ¶
Click to show internal directories.
Click to hide internal directories.