golang 的 rabbitmq 消费项目
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

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