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.

consume_key.go 15 KiB

pirms 1 gada
pirms 11 mēnešiem
pirms 11 mēnešiem
pirms 10 mēnešiem
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 11 mēnešiem
pirms 11 mēnešiem
pirms 11 mēnešiem
pirms 11 mēnešiem
pirms 11 mēnešiem
pirms 11 mēnešiem
pirms 11 mēnešiem
pirms 11 mēnešiem
pirms 10 mēnešiem
pirms 11 mēnešiem
pirms 10 mēnešiem
pirms 11 mēnešiem
pirms 11 mēnešiem
pirms 11 mēnešiem
pirms 11 mēnešiem
pirms 11 mēnešiem
pirms 11 mēnešiem
pirms 11 mēnešiem
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 11 mēnešiem
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 11 mēnešiem
pirms 1 gada
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  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: "new_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.order_buckle.exchange",
  374. // Name: "zhios_order_buckle_dev",
  375. // Type: DirectQueueType,
  376. // IsPersistent: false,
  377. // RoutKey: "order_buckle_dev",
  378. // BindKey: "",
  379. // ConsumeFunName: "ZhiosOrderBuckle",
  380. //},
  381. }
  382. const (
  383. ZhiosUserUpLvFunName = "ZhiosUserUpLv"
  384. CanalGuideOrderByUserUpLvConsume = "CanalGuideOrderByUserUpLvConsume"
  385. ZhiosOrderFreeFunName = "ZhiosOrderFree"
  386. ZhiosOrderSettleTotalFunName = "ZhiosOrderSettleTotal"
  387. ZhiosOrderTotalFunName = "ZhiosOrderTotal"
  388. ZhiosOrderTotalSecondFunName = "ZhiosOrderTotalSecond"
  389. ZhiosOrderHjyFunName = "ZhiosOrderHjy"
  390. ZhiosOrderBuckleFunName = "ZhiosOrderBuckle"
  391. ZhiosSupplierAfterOrderFunName = "ZhiosSupplierAfterOrder"
  392. CanalOrderConsumeFunName = "CanalOrderConsume"
  393. CanalGuideOrderConsumeFunName = "CanalGuideOrderConsume"
  394. ZhiOsUserVisitIpAddressConsumeFunName = "ZhiOsUserVisitIpAddressConsume"
  395. DouShenUserRegisterConsumeForOfficialFunName = "DouShenUserRegisterConsumeForOfficial"
  396. DouShenUserRegisterConsumeForOperationCenterFunName = "DouShenUserRegisterConsumeForOperationCenter"
  397. DouShenUserRegisterConsumeForMyRecommenderFunName = "DouShenUserRegisterConsumeForMyRecommender"
  398. DouShenUserRegisterConsumeForMyFansFunName = "DouShenUserRegisterConsumeForMyFans"
  399. DouShenUserRegisterConsumeForUserRegisterUpLvFunName = "DouShenUserRegisterConsumeForUserRegisterUpLv"
  400. ZhiosFastReturnOrderPayFunName = "ZhiosFastReturnOrderPay"
  401. ZhiosFastReturnOrderSuccessFunName = "ZhiosFastReturnOrderSuccess"
  402. ZhiosFastReturnOrderRefundFunName = "ZhiosFastReturnOrderRefund"
  403. ZhiosFastReturnOrderRefundSecondFunName = "ZhiosFastReturnOrderRefundSecond"
  404. CanalMallOrdForYouMiShangFunName = "CanalMallOrdForYouMiShang"
  405. YoumishangExchangeStoreFunName = "YoumishangExchangeStore"
  406. ZhiosRechargeOrderFailFunName = "ZhiosRechargeOrderFail"
  407. ZhiosRechargeOrderFailDevFunName = "ZhiosRechargeOrderFailDev"
  408. ZhiosCapitalPoolOrderTotalFunName = "ZhiosCapitalPoolOrderTotal"
  409. ZhiosExpressOrderFail = "zhiosExpressOrderFail"
  410. ZhiosWithdrawReward = "zhiosWithdrawReward"
  411. ZhiosTikTokUpdateFunName = "ZhiosTikTokUpdate"
  412. ZhiosTikTokAllUpdateFunName = "ZhiosTikTokAllUpdate"
  413. CloudIssuanceAsyncMLoginFunName = "CloudIssuanceAsyncMLoginConsume"
  414. CloudIssuanceMsgCallBackFunName = "CloudIssuanceMsgCallBackConsume"
  415. ZhiosAcquisitionConditionFunName = "ZhiosAcquisitionCondition"
  416. ZhiosValidUserFunName = "ZhiosValidUser"
  417. ZhiosAppreciationFunName = "ZhiosAppreciation"
  418. ZhiosAppreciationDevFunName = "ZhiosAppreciationDev"
  419. ZhiosGuideStoreOrderFunName = "ZhiosGuideStoreOrder"
  420. ZhiosAcquisitionConditionDevFunName = "ZhiosAcquisitionConditionDev"
  421. SupplyCloudChainFenxiaoNewChangeFunName = "SupplyCloudChainFenxiaoNewChangeConsume"
  422. MallAddSupplyGoodsFunName = "MallAddSupplyGoodsConsume"
  423. )