6 changed files with 49 additions and 0 deletions
@ -0,0 +1,28 @@ |
|||||
|
{ |
||||
|
"consumer": "consumerHBJCAS", |
||||
|
"ioConfig": { |
||||
|
"in": { |
||||
|
"http": { |
||||
|
"url": "https://esproxy.anxinyun.cn/anxincloud_themes/_search" |
||||
|
}, |
||||
|
"cronStr": "48 0/1 * * *" |
||||
|
}, |
||||
|
"out": { |
||||
|
"mqtt": { |
||||
|
"host": "10.8.30.160", |
||||
|
"port": 30883, |
||||
|
"userName": "bs1307", |
||||
|
"password": "7vEh(xomn9DX4X(L", |
||||
|
"clientId": "chengDe", |
||||
|
"Topics": [ |
||||
|
"t/province/1307" |
||||
|
] |
||||
|
}, |
||||
|
"rc4key": "sK3kJttzZyf7aZI94zSYgytBYCrfZRt6yil2" |
||||
|
} |
||||
|
}, |
||||
|
"info": { |
||||
|
"common": { |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package HBJCAS |
||||
|
|
||||
|
import "goInOut/config" |
||||
|
|
||||
|
type ConfigFile struct { |
||||
|
config.Consumer |
||||
|
IoConfig ioConfig `json:"ioConfig"` |
||||
|
OtherInfo map[string]string `json:"info"` |
||||
|
} |
||||
|
type ioConfig struct { |
||||
|
In In `json:"in"` |
||||
|
Out OUT `json:"out"` |
||||
|
} |
||||
|
type In struct { |
||||
|
Es config.EsConfig `json:"es"` |
||||
|
CronStr string `json:"cronStr"` |
||||
|
} |
||||
|
|
||||
|
type OUT struct { |
||||
|
Mqtt config.MqttConfig `json:"mqtt"` |
||||
|
} |
Loading…
Reference in new issue