golang 的 rabbitmq 消费项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

387 lines
13 KiB

  1. package md
  2. type MqQueue struct {
  3. ExchangeName string `json:"exchangeName"` //交换机名字
  4. Name string `json:"name"` //队列名字
  5. Type string `json:"type"` //队列类型
  6. IsPersistent bool `json:"is_persistent"` //队列是否持久化
  7. RoutKey string `json:"rout_key"` //路由
  8. BindKey string `json:"bind_key"` //绑定的路由
  9. ConsumeFunName string `json:"consume_fun_name"` //消费方法
  10. }
  11. var RabbitMqQueueKeyList = []*MqQueue{
  12. {
  13. ExchangeName: "",
  14. Name: "cloud_issuance_async_mlogin",
  15. Type: SimpleQueueType,
  16. IsPersistent: false,
  17. RoutKey: "",
  18. BindKey: "",
  19. ConsumeFunName: "CloudIssuanceAsyncMLoginConsume",
  20. },
  21. {
  22. ExchangeName: "",
  23. Name: "cloud_issuance_msg_call_back",
  24. Type: DirectQueueType,
  25. IsPersistent: false,
  26. RoutKey: "",
  27. BindKey: "",
  28. ConsumeFunName: "CloudIssuanceMsgCallBackConsume",
  29. },
  30. {
  31. ExchangeName: "canal.topic",
  32. Name: "canal_order",
  33. Type: TopicQueueType,
  34. IsPersistent: false,
  35. RoutKey: "canal_mall_order",
  36. BindKey: "",
  37. ConsumeFunName: "CanalOrderConsume",
  38. },
  39. {
  40. ExchangeName: "canal.topic",
  41. Name: "canal_guide_order",
  42. Type: TopicQueueType,
  43. IsPersistent: false,
  44. RoutKey: "canal_order_list",
  45. BindKey: "",
  46. ConsumeFunName: "CanalGuideOrderConsume",
  47. },
  48. {
  49. ExchangeName: "zhios.app.user.visit.ip.address.exchange",
  50. Name: "zhios_user_visit_ip_address_queue",
  51. Type: FanOutQueueType,
  52. IsPersistent: false,
  53. RoutKey: "queue_one",
  54. BindKey: "",
  55. ConsumeFunName: "ZhiOsUserVisitIpAddressConsume",
  56. },
  57. {
  58. ExchangeName: "zhios.order.fast.return.exchange",
  59. Name: "zhios_fast_return_order_pay",
  60. Type: DirectQueueType,
  61. IsPersistent: false,
  62. RoutKey: "order_pay",
  63. BindKey: "",
  64. ConsumeFunName: "ZhiosFastReturnOrderPay",
  65. },
  66. {
  67. ExchangeName: "zhios.order.fast.return.exchange",
  68. Name: "zhios_fast_return_order_success",
  69. Type: DirectQueueType,
  70. IsPersistent: false,
  71. RoutKey: "order_success",
  72. BindKey: "",
  73. ConsumeFunName: "ZhiosFastReturnOrderSuccess",
  74. },
  75. {
  76. ExchangeName: "zhios.order.fast.return.exchange",
  77. Name: "zhios_fast_return_order_refund",
  78. Type: DirectQueueType,
  79. IsPersistent: false,
  80. RoutKey: "order_refund",
  81. BindKey: "",
  82. ConsumeFunName: "ZhiosFastReturnOrderRefund",
  83. },
  84. {
  85. ExchangeName: "zhios.order.fast.return.exchange",
  86. Name: "zhios_fast_return_order_refund_second",
  87. Type: DirectQueueType,
  88. IsPersistent: false,
  89. RoutKey: "order_refund_second",
  90. BindKey: "",
  91. ConsumeFunName: "ZhiosFastReturnOrderRefundSecond",
  92. },
  93. {
  94. ExchangeName: "zhios.doushen.user.register.exchange",
  95. Name: "zhios_doushen_user_register_my_fans",
  96. Type: DirectQueueType,
  97. IsPersistent: false,
  98. RoutKey: "my_fans",
  99. BindKey: "my_fans",
  100. ConsumeFunName: "DouShenUserRegisterConsumeForMyFans",
  101. },
  102. {
  103. ExchangeName: "zhios.doushen.user.register.exchange",
  104. Name: "zhios_doushen_user_register_operation_center",
  105. Type: DirectQueueType,
  106. IsPersistent: false,
  107. RoutKey: "operation_center",
  108. BindKey: "operation_center",
  109. ConsumeFunName: "DouShenUserRegisterConsumeForOperationCenter",
  110. },
  111. {
  112. ExchangeName: "zhios.doushen.user.register.exchange",
  113. Name: "zhios_doushen_user_register_my_recommender",
  114. Type: DirectQueueType,
  115. IsPersistent: false,
  116. RoutKey: "my_recommender",
  117. BindKey: "my_recommender",
  118. ConsumeFunName: "DouShenUserRegisterConsumeForMyRecommender",
  119. },
  120. {
  121. ExchangeName: "zhios.doushen.user.register.exchange",
  122. Name: "zhios_doushen_user_register_official",
  123. Type: DirectQueueType,
  124. IsPersistent: false,
  125. RoutKey: "official",
  126. BindKey: "official",
  127. ConsumeFunName: "DouShenUserRegisterConsumeForOfficial",
  128. },
  129. {
  130. ExchangeName: "zhios.doushen.user.register.exchange",
  131. Name: "zhios_doushen_user_register_user_comm_up_lv",
  132. Type: DirectQueueType,
  133. IsPersistent: false,
  134. RoutKey: "user_register_comm_up_lv",
  135. BindKey: "user_register_comm_up_lv",
  136. ConsumeFunName: "DouShenUserRegisterConsumeForUserRegisterUpLv",
  137. },
  138. {
  139. ExchangeName: "canal.topic",
  140. Name: "canal_mall_ord_for_you_mi_shang",
  141. Type: DirectQueueType,
  142. IsPersistent: false,
  143. RoutKey: "canal_mall_order",
  144. BindKey: "",
  145. ConsumeFunName: "CanalMallOrdForYouMiShang",
  146. },
  147. {
  148. ExchangeName: "zhios.youmishang.exchange",
  149. Name: "zhios_youmishang_exchange_store",
  150. Type: DirectQueueType,
  151. IsPersistent: false,
  152. RoutKey: "store",
  153. BindKey: "store",
  154. ConsumeFunName: "YoumishangExchangeStore",
  155. },
  156. {
  157. ExchangeName: "zhios.recharge.order.exchange",
  158. Name: "zhios_recharge_order_fail",
  159. Type: DirectQueueType,
  160. IsPersistent: false,
  161. RoutKey: "order_fail",
  162. BindKey: "",
  163. ConsumeFunName: "ZhiosRechargeOrderFail",
  164. },
  165. {
  166. ExchangeName: "zhios.tikTok.exchange",
  167. Name: "zhios_tikTok_update",
  168. Type: DirectQueueType,
  169. IsPersistent: false,
  170. RoutKey: "update",
  171. BindKey: "",
  172. ConsumeFunName: "ZhiosTikTokUpdate",
  173. },
  174. {
  175. ExchangeName: "zhios.tikTok.exchange",
  176. Name: "zhios_tikTok_all_update",
  177. Type: DirectQueueType,
  178. IsPersistent: false,
  179. RoutKey: "all_update",
  180. BindKey: "",
  181. ConsumeFunName: "ZhiosTikTokAllUpdate",
  182. },
  183. {
  184. ExchangeName: "zhios.capital_pool.order_total.exchange",
  185. Name: "zhios_capital_pool_order_total",
  186. Type: DirectQueueType,
  187. IsPersistent: false,
  188. RoutKey: "order_total",
  189. BindKey: "",
  190. ConsumeFunName: "ZhiosCapitalPoolOrderTotal",
  191. },
  192. {
  193. ExchangeName: "zhios.acquisition.exchange",
  194. Name: "zhios_acquisition_condition",
  195. Type: DirectQueueType,
  196. IsPersistent: false,
  197. RoutKey: "condition",
  198. BindKey: "",
  199. ConsumeFunName: "ZhiosAcquisitionCondition",
  200. },
  201. {
  202. ExchangeName: "zhios.acquisition.exchange",
  203. Name: "zhios_acquisition_condition_dev",
  204. Type: DirectQueueType,
  205. IsPersistent: false,
  206. RoutKey: "acq_dev",
  207. BindKey: "",
  208. ConsumeFunName: "ZhiosAcquisitionConditionDev",
  209. },
  210. {
  211. ExchangeName: "zhios.recharge.order.exchange",
  212. Name: "zhios_recharge_order_fail_dev",
  213. Type: DirectQueueType,
  214. IsPersistent: false,
  215. RoutKey: "order_fail_dev",
  216. BindKey: "",
  217. ConsumeFunName: "ZhiosRechargeOrderFailDev",
  218. },
  219. {
  220. ExchangeName: "zhios.express.order.exchange",
  221. Name: "zhios_express_order_fail",
  222. Type: DirectQueueType,
  223. IsPersistent: false,
  224. RoutKey: "order_fail",
  225. BindKey: "",
  226. ConsumeFunName: "zhiosExpressOrderFail",
  227. },
  228. {
  229. ExchangeName: "zhios.withdraw.reward.exchange",
  230. Name: "zhios_withdraw_reward",
  231. Type: DirectQueueType,
  232. IsPersistent: false,
  233. RoutKey: "withdraw_reward",
  234. BindKey: "",
  235. ConsumeFunName: "zhiosWithdrawReward",
  236. },
  237. {
  238. ExchangeName: "zhios.user_valid.exchange",
  239. Name: "zhios_user_valid",
  240. Type: DirectQueueType,
  241. IsPersistent: false,
  242. RoutKey: "user_valid",
  243. BindKey: "",
  244. ConsumeFunName: "ZhiosValidUser",
  245. },
  246. {
  247. ExchangeName: "zhios.appreciation.exchange",
  248. Name: "zhios_appreciation",
  249. Type: DirectQueueType,
  250. IsPersistent: false,
  251. RoutKey: "appreciation",
  252. BindKey: "",
  253. ConsumeFunName: "ZhiosAppreciation",
  254. },
  255. {
  256. ExchangeName: "zhios.appreciation.exchange",
  257. Name: "zhios_appreciation_dev",
  258. Type: DirectQueueType,
  259. IsPersistent: false,
  260. RoutKey: "appreciation_dev",
  261. BindKey: "",
  262. ConsumeFunName: "ZhiosAppreciationDev",
  263. },
  264. {
  265. ExchangeName: "zhios.guide_store.exchange",
  266. Name: "zhios_guide_store_order",
  267. Type: DirectQueueType,
  268. IsPersistent: false,
  269. RoutKey: "guide_store_order",
  270. BindKey: "",
  271. ConsumeFunName: "ZhiosGuideStoreOrder",
  272. },
  273. {
  274. ExchangeName: "zhios.supplier_after_order.exchange",
  275. Name: "zhios_supplier_after_order",
  276. Type: DirectQueueType,
  277. IsPersistent: false,
  278. RoutKey: "refund",
  279. BindKey: "",
  280. ConsumeFunName: "ZhiosSupplierAfterOrder",
  281. },
  282. {
  283. ExchangeName: "zhios.order_buckle.exchange",
  284. Name: "zhios_order_buckle",
  285. Type: DirectQueueType,
  286. IsPersistent: false,
  287. RoutKey: "order_buckle",
  288. BindKey: "",
  289. ConsumeFunName: "ZhiosOrderBuckle",
  290. },
  291. {
  292. ExchangeName: "zhios.order_hjy.exchange",
  293. Name: "zhios_order_hjy",
  294. Type: DirectQueueType,
  295. IsPersistent: false,
  296. RoutKey: "order_hjy",
  297. BindKey: "",
  298. ConsumeFunName: "ZhiosOrderHjy",
  299. },
  300. {
  301. ExchangeName: "zhios.order_settle_total.exchange",
  302. Name: "zhios_order_settle_total",
  303. Type: DirectQueueType,
  304. IsPersistent: false,
  305. RoutKey: "order_settle_total",
  306. BindKey: "",
  307. ConsumeFunName: "ZhiosOrderSettleTotal",
  308. },
  309. {
  310. ExchangeName: "zhios.order_total.exchange",
  311. Name: "zhios_order_total",
  312. Type: DirectQueueType,
  313. IsPersistent: false,
  314. RoutKey: "order_total",
  315. BindKey: "",
  316. ConsumeFunName: "ZhiosOrderTotal",
  317. },
  318. {
  319. ExchangeName: "zhios.order_total.exchange",
  320. Name: "zhios_order_total_second",
  321. Type: DirectQueueType,
  322. IsPersistent: false,
  323. RoutKey: "order_total_second",
  324. BindKey: "",
  325. ConsumeFunName: "ZhiosOrderTotalSecond",
  326. },
  327. {
  328. ExchangeName: "zhios.order_free.exchange",
  329. Name: "zhios_order_free",
  330. Type: DirectQueueType,
  331. IsPersistent: false,
  332. RoutKey: "order_free",
  333. BindKey: "",
  334. ConsumeFunName: "ZhiosOrderFree",
  335. },
  336. //{
  337. // ExchangeName: "zhios.order_buckle.exchange",
  338. // Name: "zhios_order_buckle_dev",
  339. // Type: DirectQueueType,
  340. // IsPersistent: false,
  341. // RoutKey: "order_buckle_dev",
  342. // BindKey: "",
  343. // ConsumeFunName: "ZhiosOrderBuckle",
  344. //},
  345. }
  346. const (
  347. ZhiosOrderFreeFunName = "ZhiosOrderFree"
  348. ZhiosOrderSettleTotalFunName = "ZhiosOrderSettleTotal"
  349. ZhiosOrderTotalFunName = "ZhiosOrderTotal"
  350. ZhiosOrderTotalSecondFunName = "ZhiosOrderTotalSecond"
  351. ZhiosOrderHjyFunName = "ZhiosOrderHjy"
  352. ZhiosOrderBuckleFunName = "ZhiosOrderBuckle"
  353. ZhiosSupplierAfterOrderFunName = "ZhiosSupplierAfterOrder"
  354. CanalOrderConsumeFunName = "CanalOrderConsume"
  355. CanalGuideOrderConsumeFunName = "CanalGuideOrderConsume"
  356. ZhiOsUserVisitIpAddressConsumeFunName = "ZhiOsUserVisitIpAddressConsume"
  357. DouShenUserRegisterConsumeForOfficialFunName = "DouShenUserRegisterConsumeForOfficial"
  358. DouShenUserRegisterConsumeForOperationCenterFunName = "DouShenUserRegisterConsumeForOperationCenter"
  359. DouShenUserRegisterConsumeForMyRecommenderFunName = "DouShenUserRegisterConsumeForMyRecommender"
  360. DouShenUserRegisterConsumeForMyFansFunName = "DouShenUserRegisterConsumeForMyFans"
  361. DouShenUserRegisterConsumeForUserRegisterUpLvFunName = "DouShenUserRegisterConsumeForUserRegisterUpLv"
  362. ZhiosFastReturnOrderPayFunName = "ZhiosFastReturnOrderPay"
  363. ZhiosFastReturnOrderSuccessFunName = "ZhiosFastReturnOrderSuccess"
  364. ZhiosFastReturnOrderRefundFunName = "ZhiosFastReturnOrderRefund"
  365. ZhiosFastReturnOrderRefundSecondFunName = "ZhiosFastReturnOrderRefundSecond"
  366. CanalMallOrdForYouMiShangFunName = "CanalMallOrdForYouMiShang"
  367. YoumishangExchangeStoreFunName = "YoumishangExchangeStore"
  368. ZhiosRechargeOrderFailFunName = "ZhiosRechargeOrderFail"
  369. ZhiosRechargeOrderFailDevFunName = "ZhiosRechargeOrderFailDev"
  370. ZhiosCapitalPoolOrderTotalFunName = "ZhiosCapitalPoolOrderTotal"
  371. ZhiosExpressOrderFail = "zhiosExpressOrderFail"
  372. ZhiosWithdrawReward = "zhiosWithdrawReward"
  373. ZhiosTikTokUpdateFunName = "ZhiosTikTokUpdate"
  374. ZhiosTikTokAllUpdateFunName = "ZhiosTikTokAllUpdate"
  375. CloudIssuanceAsyncMLoginFunName = "CloudIssuanceAsyncMLoginConsume"
  376. CloudIssuanceMsgCallBackFunName = "CloudIssuanceMsgCallBackConsume"
  377. ZhiosAcquisitionConditionFunName = "ZhiosAcquisitionCondition"
  378. ZhiosValidUserFunName = "ZhiosValidUser"
  379. ZhiosAppreciationFunName = "ZhiosAppreciation"
  380. ZhiosAppreciationDevFunName = "ZhiosAppreciationDev"
  381. ZhiosGuideStoreOrderFunName = "ZhiosGuideStoreOrder"
  382. ZhiosAcquisitionConditionDevFunName = "ZhiosAcquisitionConditionDev"
  383. )