agent_api/config_manager/global_config.go

31 lines
580 B
Go
Raw Normal View History

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/"
ConfigFolder : "/home/cm2/config/container/"
BinaryFolder : "/home/cm2/container/"
PidFolder : "/home/cm2/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
}