agent_api/config_manager/global_config.go

31 lines
529 B
Go
Raw Normal View History

2017-04-27 05:58:34 +00:00
package config_manager
/* global config 예제
2017-04-27 07:44:35 +00:00
central:
address: "http://localhost:9090"
port: 443
log_Path: "./bin/log.xml"
paths:
rootFolder : "/home/cm2/"
configFolder : "config/"
binaryFolder : "container/"
pidFolder : "pids/"
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
}