messages config_manager
This commit is contained in:
parent
8cd1755134
commit
ec9c04abed
|
@ -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 {
|
||||
|
|
|
@ -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"`
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user