messages config_manager

This commit is contained in:
jackdaw@loafle.com 2017-04-27 20:16:19 +09:00
parent 8cd1755134
commit ec9c04abed
2 changed files with 36 additions and 18 deletions

View File

@ -1,26 +1,42 @@
package config_manager
type Auth struct {
}
type Connection struct {
Ip string `json:"ip"`
Port string `json:"port"`
PortType string `json:"portType"`
SSL bool `json:"ssl"`
SSL bool `json:"ssl"`
}
type Target struct {
Auth Auth
Connection Connection
//Auth map[string]interface{} `json:"auth"`
Connection Connection `json:"connection"`
}
type Schedule struct {
Interval string `json:"interval"`
}
type Keys struct {
Metric string `json:"metric"`
key string `json:"key"`
}
type QueryInfo struct {
Query string `json:"query"`
//Extend map[string]interface{} `json:"extend"`
}
type MappingInfo struct {
ParseDirection string `json:"parseDirection"`
ArrayColumns []string `json:"arrayColumns"`
KeyColumns []string `json:"keyColumns"`
ValueColumn string `json:"valueColumn"`
}
type Item struct {
Keys []Keys `json:"keys"`
QueryInfo QueryInfo `json:"queryInfo"`
MappingInfo MappingInfo `json:"mappingInfo"`
}
type Crawler struct {

View File

@ -16,16 +16,18 @@ intervalSecond: 10
type GlobalConfig struct {
Central struct {
Address string
Port int
Address string `yaml:"address"`
Port int `yaml:"port"`
}
Log_Path string
Paths struct {
RootFolder string
ConfigFolder string
BinaryFolder string
PidFolder string
ScriptFile string
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
}
IntervalSecond int `yaml:"intervalSecond"`
}