messages config_manager

This commit is contained in:
jackdaw@loafle.com 2017-04-27 16:04:12 +09:00
parent db297a817b
commit 3b57853501

View File

@ -1,18 +1,31 @@
package config_manager
/* global config 예제
central:
address: "http://localhost:9090"
port: 443
log_path: "./bin/log.xml"
Central:
Address: "http://localhost:9090"
Port: 443
Log_Path: "./bin/log.xml"
Paths:
RootFolder : "/home/cm2/"
ConfigFolder : "/home/cm2/config/container/"
BinaryFolder : "/home/cm2/container/"
PidFolder : "/home/cm2/pids/"
ScriptFile : "start"
IntervalSecond:10
*/
type GlobalConfig struct {
Central struct {
Address string
Port int
}
Log_Path string
Paths struct {
RootFolder string
ConfigFolder string
BinaryFolder string
PidFolder string
ScriptFile string
}
IntervalSecond int
}