From 24eee99d5b0ee20402369c806dfa1634ab2b2d2f Mon Sep 17 00:00:00 2001 From: Faissal Elamraoui Date: Sun, 22 Jan 2017 22:24:52 +0100 Subject: [PATCH] Enable reload through JSON/YAML configuration files --- conf.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conf.go b/conf.go index a41f4c7..e352f84 100644 --- a/conf.go +++ b/conf.go @@ -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.