messages config_manager
This commit is contained in:
parent
db297a817b
commit
3b57853501
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user