Enable reload through JSON/YAML configuration files

This commit is contained in:
Faissal Elamraoui 2017-01-22 22:24:52 +01:00
parent 4ad45b3cd7
commit 24eee99d5b
1 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,8 @@ var defaultConf = `{
"envs": [],
"database": {
"driver": "mysql"
}
},
"enable_reload": false
}
`
var conf struct {
@ -75,6 +76,7 @@ var conf struct {
Driver string
Conn string
}
EnableReload bool `json:"enable_reload" yaml:"enable_reload"`
}
// loadConfig loads customized configuration.