diff --git a/configFiles/config_河北省公路基础设施监测_承德_轻量化特征数据.json b/configFiles/config_河北省公路基础设施监测_承德_轻量化特征数据.json new file mode 100644 index 0000000..1470d60 --- /dev/null +++ b/configFiles/config_河北省公路基础设施监测_承德_轻量化特征数据.json @@ -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": { + } + } +} \ No newline at end of file diff --git a/configFiles/config_司南GnssMySQL.json b/configFiles/弃用备份/config_司南GnssMySQL.json similarity index 100% rename from configFiles/config_司南GnssMySQL.json rename to configFiles/弃用备份/config_司南GnssMySQL.json diff --git a/consumers/HBJCAS/config.go b/consumers/HBJCAS/config.go new file mode 100644 index 0000000..6720049 --- /dev/null +++ b/consumers/HBJCAS/config.go @@ -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"` +} diff --git a/consumers/HBJCAS/protoFiles/ssl/cacert.pem b/consumers/HBJCAS/ssl/cacert.pem similarity index 100% rename from consumers/HBJCAS/protoFiles/ssl/cacert.pem rename to consumers/HBJCAS/ssl/cacert.pem diff --git a/consumers/HBJCAS/protoFiles/ssl/client-cert.pem b/consumers/HBJCAS/ssl/client-cert.pem similarity index 100% rename from consumers/HBJCAS/protoFiles/ssl/client-cert.pem rename to consumers/HBJCAS/ssl/client-cert.pem diff --git a/consumers/HBJCAS/protoFiles/ssl/client-key.pem b/consumers/HBJCAS/ssl/client-key.pem similarity index 100% rename from consumers/HBJCAS/protoFiles/ssl/client-key.pem rename to consumers/HBJCAS/ssl/client-key.pem