2017-04-27 05:58:34 +00:00
|
|
|
package config_manager
|
|
|
|
|
|
|
|
/* global config 예제
|
2017-04-27 07:04:12 +00:00
|
|
|
Central:
|
|
|
|
Address: "http://localhost:9090"
|
|
|
|
Port: 443
|
|
|
|
Log_Path: "./bin/log.xml"
|
|
|
|
Paths:
|
|
|
|
RootFolder : "/home/cm2/"
|
2017-04-27 07:16:46 +00:00
|
|
|
ConfigFolder : "config/container/"
|
|
|
|
BinaryFolder : "container/"
|
|
|
|
PidFolder : "pids/"
|
2017-04-27 07:04:12 +00:00
|
|
|
ScriptFile : "start"
|
|
|
|
IntervalSecond:10
|
2017-04-27 05:58:34 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
type GlobalConfig struct {
|
|
|
|
Central struct {
|
|
|
|
Address string
|
|
|
|
Port int
|
|
|
|
}
|
|
|
|
Log_Path string
|
2017-04-27 07:04:12 +00:00
|
|
|
Paths struct {
|
|
|
|
RootFolder string
|
|
|
|
ConfigFolder string
|
|
|
|
BinaryFolder string
|
|
|
|
PidFolder string
|
|
|
|
ScriptFile string
|
|
|
|
}
|
|
|
|
IntervalSecond int
|
2017-04-27 05:58:34 +00:00
|
|
|
}
|