agent_api/config_manager/global_config.go
2017-04-27 20:16:19 +09:00

34 lines
718 B
Go

package config_manager
/* global config 예제
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
*/
type GlobalConfig struct {
Central struct {
Address string `yaml:"address"`
Port int `yaml:"port"`
}
LogPath string `yaml:"logPath"`
Paths struct {
RootFolder string `yaml:"rootFolder"`
ConfigFolder string `yaml:"configFolder"`
BinaryFolder string `yaml:"binaryFolder"`
PidFolder string `yaml:"pidFolder"`
ScriptFile string `yaml:"scriptFile"`
}
IntervalSecond int `yaml:"intervalSecond"`
}