golang 的 rabbitmq 消费项目
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

530 rindas
18 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: "zhios.cloud.issuance.msg.callback.exchange",
  23. Name: "cloud_issuance_msg_call_back",
  24. Type: DirectQueueType,
  25. IsPersistent: false,
  26. RoutKey: "",
  27. BindKey: "",
  28. ConsumeFunName: "CloudIssuanceMsgCallBackConsume",
  29. },
  30. {
  31. ExchangeName: "zhios.cloud_chain.fenxiao.newChange.exchange",
  32. Name: "cloud_chain_fenxiao_newChange",
  33. Type: FanOutQueueType,
  34. IsPersistent: false,
  35. RoutKey: "",
  36. BindKey: "",
  37. ConsumeFunName: "SupplyCloudChainFenxiaoNewChangeConsume",
  38. },
  39. {
  40. ExchangeName: "zhios.addSupplyGoods.exchange",
  41. Name: "mall_add_supply_goods",
  42. Type: FanOutQueueType,
  43. IsPersistent: false,
  44. RoutKey: "",
  45. BindKey: "",
  46. ConsumeFunName: "MallAddSupplyGoodsConsume",
  47. },
  48. {
  49. ExchangeName: "canal.topic",
  50. Name: "canal_order",
  51. Type: TopicQueueType,
  52. IsPersistent: false,
  53. RoutKey: "canal_mall_order",
  54. BindKey: "",
  55. ConsumeFunName: "CanalOrderConsume",
  56. },
  57. {
  58. ExchangeName: "canal.topic",
  59. Name: "canal_guide_order",
  60. Type: TopicQueueType,
  61. IsPersistent: false,
  62. RoutKey: "canal_order_list",
  63. BindKey: "",
  64. ConsumeFunName: "CanalGuideOrderConsume",
  65. },
  66. {
  67. ExchangeName: "canal.topic",
  68. Name: "canal_guide_order_by_user_up_lv",
  69. Type: TopicQueueType,
  70. IsPersistent: false,
  71. RoutKey: "canal_order_list",
  72. BindKey: "",
  73. ConsumeFunName: "CanalGuideOrderByUserUpLvConsume",
  74. },
  75. {
  76. ExchangeName: "zhios.app.user.visit.ip.address.exchange",
  77. Name: "zhios_user_visit_ip_address_queue",
  78. Type: FanOutQueueType,
  79. IsPersistent: false,
  80. RoutKey: "queue_one",
  81. BindKey: "",
  82. ConsumeFunName: "ZhiOsUserVisitIpAddressConsume",
  83. },
  84. {
  85. ExchangeName: "zhios.order.fast.return.exchange",
  86. Name: "zhios_fast_return_order_pay",
  87. Type: DirectQueueType,
  88. IsPersistent: false,
  89. RoutKey: "order_pay",
  90. BindKey: "",
  91. ConsumeFunName: "ZhiosFastReturnOrderPay",
  92. },
  93. {
  94. ExchangeName: "zhios.order.fast.return.exchange",
  95. Name: "zhios_fast_return_order_success",
  96. Type: DirectQueueType,
  97. IsPersistent: false,
  98. RoutKey: "order_success",
  99. BindKey: "",
  100. ConsumeFunName: "ZhiosFastReturnOrderSuccess",
  101. },
  102. {
  103. ExchangeName: "zhios.order.fast.return.exchange",
  104. Name: "zhios_fast_return_order_refund",
  105. Type: DirectQueueType,
  106. IsPersistent: false,
  107. RoutKey: "order_refund",
  108. BindKey: "",
  109. ConsumeFunName: "ZhiosFastReturnOrderRefund",
  110. },
  111. {
  112. ExchangeName: "zhios.order.fast.return.exchange",
  113. Name: "zhios_fast_return_order_refund_second",
  114. Type: DirectQueueType,
  115. IsPersistent: false,
  116. RoutKey: "order_refund_second",
  117. BindKey: "",
  118. ConsumeFunName: "ZhiosFastReturnOrderRefundSecond",
  119. },
  120. {
  121. ExchangeName: "zhios.doushen.user.register.exchange",
  122. Name: "zhios_doushen_user_register_my_fans",
  123. Type: DirectQueueType,
  124. IsPersistent: false,
  125. RoutKey: "my_fans",
  126. BindKey: "my_fans",
  127. ConsumeFunName: "DouShenUserRegisterConsumeForMyFans",
  128. },
  129. {
  130. ExchangeName: "zhios.doushen.user.register.exchange",
  131. Name: "zhios_doushen_user_register_operation_center",
  132. Type: DirectQueueType,
  133. IsPersistent: false,
  134. RoutKey: "operation_center",
  135. BindKey: "operation_center",
  136. ConsumeFunName: "DouShenUserRegisterConsumeForOperationCenter",
  137. },
  138. {
  139. ExchangeName: "zhios.doushen.user.register.exchange",
  140. Name: "zhios_doushen_user_register_my_recommender",
  141. Type: DirectQueueType,
  142. IsPersistent: false,
  143. RoutKey: "my_recommender",
  144. BindKey: "my_recommender",
  145. ConsumeFunName: "DouShenUserRegisterConsumeForMyRecommender",
  146. },
  147. {
  148. ExchangeName: "zhios.doushen.user.register.exchange",
  149. Name: "zhios_doushen_user_register_official",
  150. Type: DirectQueueType,
  151. IsPersistent: false,
  152. RoutKey: "official",
  153. BindKey: "official",
  154. ConsumeFunName: "DouShenUserRegisterConsumeForOfficial",
  155. },
  156. {
  157. ExchangeName: "zhios.doushen.user.register.exchange",
  158. Name: "zhios_doushen_user_register_user_comm_up_lv",
  159. Type: DirectQueueType,
  160. IsPersistent: false,
  161. RoutKey: "user_register_comm_up_lv",
  162. BindKey: "user_register_comm_up_lv",
  163. ConsumeFunName: "DouShenUserRegisterConsumeForUserRegisterUpLv",
  164. },
  165. {
  166. ExchangeName: "canal.topic",
  167. Name: "canal_mall_ord_for_you_mi_shang",
  168. Type: DirectQueueType,
  169. IsPersistent: false,
  170. RoutKey: "canal_mall_order",
  171. BindKey: "",
  172. ConsumeFunName: "CanalMallOrdForYouMiShang",
  173. },
  174. {
  175. ExchangeName: "zhios.youmishang.exchange",
  176. Name: "zhios_youmishang_exchange_store",
  177. Type: DirectQueueType,
  178. IsPersistent: false,
  179. RoutKey: "store",
  180. BindKey: "store",
  181. ConsumeFunName: "YoumishangExchangeStore",
  182. },
  183. {
  184. ExchangeName: "zhios.recharge.order.exchange",
  185. Name: "zhios_recharge_order_fail",
  186. Type: DirectQueueType,
  187. IsPersistent: false,
  188. RoutKey: "order_fail",
  189. BindKey: "",
  190. ConsumeFunName: "ZhiosRechargeOrderFail",
  191. },
  192. {
  193. ExchangeName: "zhios.tikTok.exchange",
  194. Name: "zhios_tikTok_update",
  195. Type: DirectQueueType,
  196. IsPersistent: false,
  197. RoutKey: "update",
  198. BindKey: "",
  199. ConsumeFunName: "ZhiosTikTokUpdate",
  200. },
  201. {
  202. ExchangeName: "zhios.tikTok.exchange",
  203. Name: "zhios_tikTok_all_update",
  204. Type: DirectQueueType,
  205. IsPersistent: false,
  206. RoutKey: "all_update",
  207. BindKey: "",
  208. ConsumeFunName: "ZhiosTikTokAllUpdate",
  209. },
  210. {
  211. ExchangeName: "zhios.capital_pool.order_total.exchange",
  212. Name: "zhios_capital_pool_order_total",
  213. Type: DirectQueueType,
  214. IsPersistent: false,
  215. RoutKey: "order_total",
  216. BindKey: "",
  217. ConsumeFunName: "ZhiosCapitalPoolOrderTotal",
  218. },
  219. {
  220. ExchangeName: "zhios.acquisition.exchange",
  221. Name: "zhios_acquisition_condition",
  222. Type: DirectQueueType,
  223. IsPersistent: false,
  224. RoutKey: "condition",
  225. BindKey: "",
  226. ConsumeFunName: "ZhiosAcquisitionCondition",
  227. },
  228. {
  229. ExchangeName: "zhios.acquisition.exchange",
  230. Name: "zhios_acquisition_condition_dev",
  231. Type: DirectQueueType,
  232. IsPersistent: false,
  233. RoutKey: "acq_dev",
  234. BindKey: "",
  235. ConsumeFunName: "ZhiosAcquisitionConditionDev",
  236. },
  237. {
  238. ExchangeName: "zhios.recharge.order.exchange",
  239. Name: "zhios_recharge_order_fail_dev",
  240. Type: DirectQueueType,
  241. IsPersistent: false,
  242. RoutKey: "order_fail_dev",
  243. BindKey: "",
  244. ConsumeFunName: "ZhiosRechargeOrderFailDev",
  245. },
  246. {
  247. ExchangeName: "zhios.express.order.exchange",
  248. Name: "zhios_express_order_fail",
  249. Type: DirectQueueType,
  250. IsPersistent: false,
  251. RoutKey: "order_fail",
  252. BindKey: "",
  253. ConsumeFunName: "zhiosExpressOrderFail",
  254. },
  255. {
  256. ExchangeName: "zhios.withdraw.reward.exchange",
  257. Name: "zhios_withdraw_reward",
  258. Type: DirectQueueType,
  259. IsPersistent: false,
  260. RoutKey: "withdraw_reward",
  261. BindKey: "",
  262. ConsumeFunName: "zhiosWithdrawReward",
  263. },
  264. {
  265. ExchangeName: "zhios.user_valid.exchange",
  266. Name: "zhios_user_valid",
  267. Type: DirectQueueType,
  268. IsPersistent: false,
  269. RoutKey: "user_valid",
  270. BindKey: "",
  271. ConsumeFunName: "ZhiosValidUser",
  272. },
  273. {
  274. ExchangeName: "zhios.appreciation.exchange",
  275. Name: "zhios_appreciation",
  276. Type: DirectQueueType,
  277. IsPersistent: false,
  278. RoutKey: "appreciation",
  279. BindKey: "",
  280. ConsumeFunName: "ZhiosAppreciation",
  281. },
  282. {
  283. ExchangeName: "zhios.appreciation.exchange",
  284. Name: "zhios_appreciation_dev",
  285. Type: DirectQueueType,
  286. IsPersistent: false,
  287. RoutKey: "appreciation_dev",
  288. BindKey: "",
  289. ConsumeFunName: "ZhiosAppreciationDev",
  290. },
  291. {
  292. ExchangeName: "zhios.guide_store.exchange",
  293. Name: "zhios_guide_store_order",
  294. Type: DirectQueueType,
  295. IsPersistent: false,
  296. RoutKey: "guide_store_order",
  297. BindKey: "",
  298. ConsumeFunName: "ZhiosGuideStoreOrder",
  299. },
  300. {
  301. ExchangeName: "zhios.supplier_after_order.exchange",
  302. Name: "zhios_supplier_after_order",
  303. Type: DirectQueueType,
  304. IsPersistent: false,
  305. RoutKey: "refund",
  306. BindKey: "",
  307. ConsumeFunName: "ZhiosSupplierAfterOrder",
  308. },
  309. {
  310. ExchangeName: "zhios.order_buckle.exchange",
  311. Name: "zhios_order_buckle",
  312. Type: DirectQueueType,
  313. IsPersistent: false,
  314. RoutKey: "order_buckle",
  315. BindKey: "",
  316. ConsumeFunName: "ZhiosOrderBuckle",
  317. },
  318. {
  319. ExchangeName: "zhios.order_hjy.exchange",
  320. Name: "zhios_order_hjy",
  321. Type: DirectQueueType,
  322. IsPersistent: false,
  323. RoutKey: "order_hjy",
  324. BindKey: "",
  325. ConsumeFunName: "ZhiosOrderHjy",
  326. },
  327. {
  328. ExchangeName: "zhios.order_settle_total.exchange",
  329. Name: "zhios_order_settle_total",
  330. Type: DirectQueueType,
  331. IsPersistent: false,
  332. RoutKey: "order_settle_total",
  333. BindKey: "",
  334. ConsumeFunName: "ZhiosOrderSettleTotal",
  335. },
  336. {
  337. ExchangeName: "zhios.order_total.exchange",
  338. Name: "zhios_order_total",
  339. Type: DirectQueueType,
  340. IsPersistent: false,
  341. RoutKey: "order_total",
  342. BindKey: "",
  343. ConsumeFunName: "ZhiosOrderTotal",
  344. },
  345. {
  346. ExchangeName: "zhios.order_total.exchange",
  347. Name: "zhios_order_total_second",
  348. Type: DirectQueueType,
  349. IsPersistent: false,
  350. RoutKey: "order_total_second",
  351. BindKey: "",
  352. ConsumeFunName: "ZhiosOrderTotalSecond",
  353. },
  354. {
  355. ExchangeName: "zhios.order_free.exchange",
  356. Name: "zhios_order_free",
  357. Type: DirectQueueType,
  358. IsPersistent: false,
  359. RoutKey: "order_free",
  360. BindKey: "",
  361. ConsumeFunName: "ZhiosOrderFree",
  362. },
  363. {
  364. ExchangeName: "zhios.user_up_lv.exchange",
  365. Name: "zhios_user_up_lv",
  366. Type: DirectQueueType,
  367. IsPersistent: false,
  368. RoutKey: "user_up_lv",
  369. BindKey: "",
  370. ConsumeFunName: "ZhiosUserUpLv",
  371. },
  372. {
  373. ExchangeName: "zhios.integral_proxy_recharge.exchange",
  374. Name: "zhios_integral_proxy_recharge",
  375. Type: DirectQueueType,
  376. IsPersistent: false,
  377. RoutKey: "integral_proxy_recharge",
  378. BindKey: "",
  379. ConsumeFunName: "ZhiosIntegralProxyRecharge",
  380. },
  381. {
  382. ExchangeName: "zhios.mall_green_coin_consume.exchange",
  383. Name: "zhios_mall_green_coin_consume",
  384. Type: DirectQueueType,
  385. IsPersistent: false,
  386. RoutKey: "mall_green_coin_consume",
  387. BindKey: "",
  388. ConsumeFunName: "ZhiosMallGreenCoinConsume",
  389. },
  390. {
  391. ExchangeName: "canal.topic",
  392. Name: "canal_user_virtual_coin_flow",
  393. Type: TopicQueueType,
  394. IsPersistent: false,
  395. RoutKey: "canal_user_virtual_coin_flow",
  396. BindKey: "",
  397. ConsumeFunName: "CanalUserVirtualCoinFlowConsume",
  398. },
  399. {
  400. ExchangeName: "one.circles",
  401. Name: "one_circles_sign_in_green_energy",
  402. Type: TopicQueueType,
  403. IsPersistent: false,
  404. RoutKey: "sign_in",
  405. BindKey: "",
  406. ConsumeFunName: "OneCirclesSignInGreenEnergyConsume",
  407. },
  408. {
  409. ExchangeName: "one.circles",
  410. Name: "one_circles_start_level_dividend",
  411. Type: TopicQueueType,
  412. IsPersistent: false,
  413. RoutKey: "star_level_dividend",
  414. BindKey: "",
  415. ConsumeFunName: "OneCirclesStartLevelDividendConsume",
  416. },
  417. {
  418. ExchangeName: "one.circles",
  419. Name: "one_circles_sign_in_green_energy_copy",
  420. Type: TopicQueueType,
  421. IsPersistent: false,
  422. RoutKey: "sign_in_copy",
  423. BindKey: "",
  424. ConsumeFunName: "OneCirclesSignInCopyGreenEnergyConsume",
  425. },
  426. {
  427. ExchangeName: "zhios.app.user.withdraw.apply.exchange",
  428. Name: "zhios_app_user_withdraw_apply_queue",
  429. Type: FanOutQueueType,
  430. IsPersistent: false,
  431. RoutKey: "queues_one",
  432. BindKey: "",
  433. ConsumeFunName: "WithdrawConsume",
  434. },
  435. {
  436. ExchangeName: "zhios.one.orenge.exchange",
  437. Name: "zhios_one_orenge_exchange",
  438. Type: FanOutQueueType,
  439. IsPersistent: false,
  440. RoutKey: "integral_exchange",
  441. BindKey: "",
  442. ConsumeFunName: "CancalUserIntegralExchange",
  443. },
  444. {
  445. ExchangeName: "zhios.one_orenge_task_reward.exchange",
  446. Name: "zhios_one_orenge_task_reward",
  447. Type: FanOutQueueType,
  448. IsPersistent: false,
  449. RoutKey: "task_reward",
  450. BindKey: "",
  451. ConsumeFunName: "ZhiosTaskRewardExchange",
  452. },
  453. {
  454. ExchangeName: "canal.topic", //
  455. Name: "canal_fin_user_flow",
  456. Type: TopicQueueType,
  457. IsPersistent: false,
  458. RoutKey: "canal_fin_user_flow",
  459. BindKey: "",
  460. ConsumeFunName: "CancalUserMoneyConsume",
  461. },
  462. {
  463. ExchangeName: "canal.topic", //
  464. Name: "canal_user_relate",
  465. Type: TopicQueueType,
  466. IsPersistent: false,
  467. RoutKey: "canal_user_relate",
  468. BindKey: "",
  469. ConsumeFunName: "CancalUserRelateConsume",
  470. },
  471. }
  472. const (
  473. ZhiosUserRelateFunName = "ZhiosUserRelate"
  474. ZhiosIntegralProxyRechargeFunName = "ZhiosIntegralProxyRecharge"
  475. ZhiosMallGreenCoinConsumeFunName = "ZhiosMallGreenCoinConsume"
  476. ZhiosUserUpLvFunName = "ZhiosUserUpLv"
  477. CanalGuideOrderByUserUpLvConsume = "CanalGuideOrderByUserUpLvConsume"
  478. ZhiosOrderFreeFunName = "ZhiosOrderFree"
  479. ZhiosOrderSettleTotalFunName = "ZhiosOrderSettleTotal"
  480. ZhiosOrderTotalFunName = "ZhiosOrderTotal"
  481. ZhiosOrderTotalSecondFunName = "ZhiosOrderTotalSecond"
  482. ZhiosOrderHjyFunName = "ZhiosOrderHjy"
  483. ZhiosOrderBuckleFunName = "ZhiosOrderBuckle"
  484. ZhiosSupplierAfterOrderFunName = "ZhiosSupplierAfterOrder"
  485. CanalOrderConsumeFunName = "CanalOrderConsume"
  486. CanalGuideOrderConsumeFunName = "CanalGuideOrderConsume"
  487. ZhiOsUserVisitIpAddressConsumeFunName = "ZhiOsUserVisitIpAddressConsume"
  488. DouShenUserRegisterConsumeForOfficialFunName = "DouShenUserRegisterConsumeForOfficial"
  489. DouShenUserRegisterConsumeForOperationCenterFunName = "DouShenUserRegisterConsumeForOperationCenter"
  490. DouShenUserRegisterConsumeForMyRecommenderFunName = "DouShenUserRegisterConsumeForMyRecommender"
  491. DouShenUserRegisterConsumeForMyFansFunName = "DouShenUserRegisterConsumeForMyFans"
  492. DouShenUserRegisterConsumeForUserRegisterUpLvFunName = "DouShenUserRegisterConsumeForUserRegisterUpLv"
  493. ZhiosFastReturnOrderPayFunName = "ZhiosFastReturnOrderPay"
  494. ZhiosFastReturnOrderSuccessFunName = "ZhiosFastReturnOrderSuccess"
  495. ZhiosFastReturnOrderRefundFunName = "ZhiosFastReturnOrderRefund"
  496. ZhiosFastReturnOrderRefundSecondFunName = "ZhiosFastReturnOrderRefundSecond"
  497. CanalMallOrdForYouMiShangFunName = "CanalMallOrdForYouMiShang"
  498. YoumishangExchangeStoreFunName = "YoumishangExchangeStore"
  499. ZhiosRechargeOrderFailFunName = "ZhiosRechargeOrderFail"
  500. ZhiosRechargeOrderFailDevFunName = "ZhiosRechargeOrderFailDev"
  501. ZhiosCapitalPoolOrderTotalFunName = "ZhiosCapitalPoolOrderTotal"
  502. ZhiosExpressOrderFail = "zhiosExpressOrderFail"
  503. ZhiosWithdrawReward = "zhiosWithdrawReward"
  504. ZhiosTikTokUpdateFunName = "ZhiosTikTokUpdate"
  505. ZhiosTikTokAllUpdateFunName = "ZhiosTikTokAllUpdate"
  506. CloudIssuanceAsyncMLoginFunName = "CloudIssuanceAsyncMLoginConsume"
  507. CloudIssuanceMsgCallBackFunName = "CloudIssuanceMsgCallBackConsume"
  508. ZhiosAcquisitionConditionFunName = "ZhiosAcquisitionCondition"
  509. ZhiosValidUserFunName = "ZhiosValidUser"
  510. ZhiosAppreciationFunName = "ZhiosAppreciation"
  511. ZhiosAppreciationDevFunName = "ZhiosAppreciationDev"
  512. ZhiosGuideStoreOrderFunName = "ZhiosGuideStoreOrder"
  513. ZhiosAcquisitionConditionDevFunName = "ZhiosAcquisitionConditionDev"
  514. SupplyCloudChainFenxiaoNewChangeFunName = "SupplyCloudChainFenxiaoNewChangeConsume"
  515. MallAddSupplyGoodsFunName = "MallAddSupplyGoodsConsume"
  516. CanalUserVirtualCcoinFlowFunName = "CanalUserVirtualCoinFlowConsume"
  517. OneCirclesSignInGreenEnergyFunName = "OneCirclesSignInGreenEnergyConsume"
  518. OneCirclesStartLevelDividendFunName = "OneCirclesStartLevelDividendConsume"
  519. OneCirclesSignInCopyGreenEnergyFunName = "OneCirclesSignInCopyGreenEnergyConsume"
  520. WithdrawConsumeFunName = "WithdrawConsume"
  521. CancalUserMoneyConsumeFunName = "CancalUserMoneyConsume"
  522. CancalUserRelateConsumeFunName = "CancalUserRelateConsume"
  523. CancalUserIntegralExchangeConsumeFunName = "CancalUserIntegralExchange"
  524. ZhiosTaskRewardConsumeFunName = "ZhiosTaskRewardExchange"
  525. )