|
@@ -21,6 +21,7 @@ type config struct {
|
|
|
Editoraddr string `json:"editoraddr"`
|
|
|
Tesseractadd string `json:"tesseractadd"`
|
|
|
BidEditor dbInfo `json:"bideditor"`
|
|
|
+ Bidding dbInfo `json:"bidding"`
|
|
|
Testdir string `json:"testdir"`
|
|
|
Uploadevent int `json:"uploadevent"`
|
|
|
Redistype string `json:"redistype"`
|
|
@@ -71,6 +72,7 @@ type config struct {
|
|
|
LocalUdpPort string `json:"localudport"`
|
|
|
TmpDbSize int `json:"tmpmgosize"`
|
|
|
SpiderChan int `json:"spiderchan"`
|
|
|
+ Flows []flow `json:"flows"`
|
|
|
|
|
|
//爬虫迁移
|
|
|
Cron string `json:"cron"`
|
|
@@ -95,14 +97,25 @@ type config struct {
|
|
|
ServerCodeAddress string `json:"servercodeaddress"`
|
|
|
ServerCodefreeAddress string `json:"servercodefreeaddress"`
|
|
|
TimeOut time.Duration `json:"timeout"`
|
|
|
+ //系统库
|
|
|
+ SystemDB dbInfo `json:"systemdb"`
|
|
|
+ //基本数据库
|
|
|
+ DataDB dbInfo `json:"datadb"`
|
|
|
+}
|
|
|
+
|
|
|
+type flow struct {
|
|
|
+ Memo string `json:"memo"`
|
|
|
+ Addr string `json:"addr"`
|
|
|
+ Port int `json:"port"`
|
|
|
}
|
|
|
|
|
|
type dbInfo struct {
|
|
|
- Addr string
|
|
|
- Db string
|
|
|
- Size int
|
|
|
- Username string
|
|
|
- Password string
|
|
|
+ Addr string `json:"addr"`
|
|
|
+ Db string `json:"db"`
|
|
|
+ Coll string `json:"coll"`
|
|
|
+ Size int `json:"size"`
|
|
|
+ Username string `json:"username"`
|
|
|
+ Password string `json:"password"`
|
|
|
}
|
|
|
|
|
|
var Config config
|