Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = &Config{ LogLevel: "Info", AppList: map[string]AppList{ "9001.1.1.1": { App: map[string]App{ "port_player": { Port: "20041", }, }, }, "9001.2.1.1": { App: map[string]App{ "port_gt": { Port: "20071", }, }, }, "9001.3.1.1": { App: map[string]App{ "port_service": { Port: "20081", OuterAddr: "127.0.0.1", }, }, }, "9001.4.1.1": { App: map[string]App{ "port_http": { Port: "8080", }, }, }, "9001.5.1.1": { App: map[string]App{ "port_service": { Port: "20091", }, }, }, "9001.6.1.1": { App: map[string]App{ "port_http": { Port: "20011", }, }, }, }, MysqlConf: map[string]MysqlConf{ "account": { Dsn: "root:password@tcp(127.0.0.1:3306)/hkrpg-go-account?charset=utf8mb4&parseTime=True&loc=Local", }, "user": { Dsn: "root:password@tcp(127.0.0.1:3306)/hkrpg-go-user?charset=utf8mb4&parseTime=True&loc=Local", }, "player": { Dsn: "root:password@tcp(127.0.0.1:3306)/hkrpg-go-player?charset=utf8mb4&parseTime=True&loc=Local", }, "conf": { Dsn: "root:password@tcp(127.0.0.1:3306)/hkrpg-go-conf?charset=utf8mb4&parseTime=True&loc=Local", }, }, RedisConf: map[string]RedisConf{ "player_login": { Addr: "127.0.0.1:6379", Password: "password", DB: 1, }, "player_status": { Addr: "127.0.0.1:6379", Password: "password", DB: 1, }, "player_mail": { Addr: "127.0.0.1:6379", Password: "password", DB: 1, }, "player_chat": { Addr: "127.0.0.1:6379", Password: "password", DB: 1, }, "player_brief_data": { Addr: "127.0.0.1:6379", Password: "password", DB: 1, }, }, }
View Source
var FileNotExist = errors.New("config file not found")
Functions ¶
func LoadConfig ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.