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.

consume_key.go 8.3 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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.doushen.user.register.exchange",
  77. Name: "zhios_doushen_user_register_my_fans",
  78. Type: DirectQueueType,
  79. IsPersistent: false,
  80. RoutKey: "my_fans",
  81. BindKey: "my_fans",
  82. ConsumeFunName: "DouShenUserRegisterConsumeForMyFans",
  83. },
  84. {
  85. ExchangeName: "zhios.doushen.user.register.exchange",
  86. Name: "zhios_doushen_user_register_operation_center",
  87. Type: DirectQueueType,
  88. IsPersistent: false,
  89. RoutKey: "operation_center",
  90. BindKey: "operation_center",
  91. ConsumeFunName: "DouShenUserRegisterConsumeForOperationCenter",
  92. },
  93. {
  94. ExchangeName: "zhios.doushen.user.register.exchange",
  95. Name: "zhios_doushen_user_register_my_recommender",
  96. Type: DirectQueueType,
  97. IsPersistent: false,
  98. RoutKey: "my_recommender",
  99. BindKey: "my_recommender",
  100. ConsumeFunName: "DouShenUserRegisterConsumeForMyRecommender",
  101. },
  102. {
  103. ExchangeName: "zhios.doushen.user.register.exchange",
  104. Name: "zhios_doushen_user_register_official",
  105. Type: DirectQueueType,
  106. IsPersistent: false,
  107. RoutKey: "official",
  108. BindKey: "official",
  109. ConsumeFunName: "DouShenUserRegisterConsumeForOfficial",
  110. },
  111. {
  112. ExchangeName: "zhios.doushen.user.register.exchange",
  113. Name: "zhios_doushen_user_register_user_comm_up_lv",
  114. Type: DirectQueueType,
  115. IsPersistent: false,
  116. RoutKey: "user_register_comm_up_lv",
  117. BindKey: "user_register_comm_up_lv",
  118. ConsumeFunName: "DouShenUserRegisterConsumeForUserRegisterUpLv",
  119. },
  120. {
  121. ExchangeName: "canal.topic",
  122. Name: "canal_mall_ord_for_you_mi_shang",
  123. Type: DirectQueueType,
  124. IsPersistent: false,
  125. RoutKey: "canal_mall_order",
  126. BindKey: "",
  127. ConsumeFunName: "CanalMallOrdForYouMiShang",
  128. },
  129. {
  130. ExchangeName: "zhios.youmishang.exchange",
  131. Name: "zhios_youmishang_exchange_store",
  132. Type: DirectQueueType,
  133. IsPersistent: false,
  134. RoutKey: "store",
  135. BindKey: "store",
  136. ConsumeFunName: "YoumishangExchangeStore",
  137. },
  138. {
  139. ExchangeName: "zhios.recharge.order.exchange",
  140. Name: "zhios_recharge_order_fail",
  141. Type: DirectQueueType,
  142. IsPersistent: false,
  143. RoutKey: "order_fail",
  144. BindKey: "",
  145. ConsumeFunName: "ZhiosRechargeOrderFail",
  146. },
  147. {
  148. ExchangeName: "zhios.tikTok.exchange",
  149. Name: "zhios_tikTok_update",
  150. Type: DirectQueueType,
  151. IsPersistent: false,
  152. RoutKey: "update",
  153. BindKey: "",
  154. ConsumeFunName: "ZhiosTikTokUpdate",
  155. },
  156. {
  157. ExchangeName: "zhios.tikTok.exchange",
  158. Name: "zhios_tikTok_all_update",
  159. Type: DirectQueueType,
  160. IsPersistent: false,
  161. RoutKey: "all_update",
  162. BindKey: "",
  163. ConsumeFunName: "ZhiosTikTokAllUpdate",
  164. },
  165. {
  166. ExchangeName: "zhios.capital_pool.order_total.exchange",
  167. Name: "zhios_capital_pool_order_total",
  168. Type: DirectQueueType,
  169. IsPersistent: false,
  170. RoutKey: "order_total",
  171. BindKey: "",
  172. ConsumeFunName: "ZhiosCapitalPoolOrderTotal",
  173. },
  174. {
  175. ExchangeName: "zhios.acquisition.exchange",
  176. Name: "zhios_acquisition_condition",
  177. Type: DirectQueueType,
  178. IsPersistent: false,
  179. RoutKey: "condition",
  180. BindKey: "",
  181. ConsumeFunName: "ZhiosAcquisitionCondition",
  182. },
  183. {
  184. ExchangeName: "zhios.acquisition.exchange",
  185. Name: "zhios_acquisition_condition_dev",
  186. Type: DirectQueueType,
  187. IsPersistent: false,
  188. RoutKey: "acq_dev",
  189. BindKey: "",
  190. ConsumeFunName: "ZhiosAcquisitionConditionDev",
  191. },
  192. {
  193. ExchangeName: "zhios.recharge.order.exchange",
  194. Name: "zhios_recharge_order_fail_dev",
  195. Type: DirectQueueType,
  196. IsPersistent: false,
  197. RoutKey: "order_fail_dev",
  198. BindKey: "",
  199. ConsumeFunName: "ZhiosRechargeOrderFailDev",
  200. },
  201. {
  202. ExchangeName: "zhios.express.order.exchange",
  203. Name: "zhios_express_order_fail",
  204. Type: DirectQueueType,
  205. IsPersistent: false,
  206. RoutKey: "order_fail",
  207. BindKey: "",
  208. ConsumeFunName: "zhiosExpressOrderFail",
  209. },
  210. }
  211. const (
  212. CanalOrderConsumeFunName = "CanalOrderConsume"
  213. CanalGuideOrderConsumeFunName = "CanalGuideOrderConsume"
  214. ZhiOsUserVisitIpAddressConsumeFunName = "ZhiOsUserVisitIpAddressConsume"
  215. DouShenUserRegisterConsumeForOfficialFunName = "DouShenUserRegisterConsumeForOfficial"
  216. DouShenUserRegisterConsumeForOperationCenterFunName = "DouShenUserRegisterConsumeForOperationCenter"
  217. DouShenUserRegisterConsumeForMyRecommenderFunName = "DouShenUserRegisterConsumeForMyRecommender"
  218. DouShenUserRegisterConsumeForMyFansFunName = "DouShenUserRegisterConsumeForMyFans"
  219. DouShenUserRegisterConsumeForUserRegisterUpLvFunName = "DouShenUserRegisterConsumeForUserRegisterUpLv"
  220. ZhiosFastReturnOrderPayFunName = "ZhiosFastReturnOrderPay"
  221. ZhiosFastReturnOrderSuccessFunName = "ZhiosFastReturnOrderSuccess"
  222. ZhiosFastReturnOrderRefundFunName = "ZhiosFastReturnOrderRefund"
  223. CanalMallOrdForYouMiShangFunName = "CanalMallOrdForYouMiShang"
  224. YoumishangExchangeStoreFunName = "YoumishangExchangeStore"
  225. ZhiosRechargeOrderFailFunName = "ZhiosRechargeOrderFail"
  226. ZhiosRechargeOrderFailDevFunName = "ZhiosRechargeOrderFailDev"
  227. ZhiosCapitalPoolOrderTotalFunName = "ZhiosCapitalPoolOrderTotal"
  228. ZhiosExpressOrderFail = "zhiosExpressOrderFail"
  229. ZhiosTikTokUpdateFunName = "ZhiosTikTokUpdate"
  230. ZhiosTikTokAllUpdateFunName = "ZhiosTikTokAllUpdate"
  231. CloudIssuanceAsyncMLoginFunName = "CloudIssuanceAsyncMLoginConsume"
  232. ZhiosAcquisitionConditionFunName = "ZhiosAcquisitionCondition"
  233. ZhiosAcquisitionConditionDevFunName = "ZhiosAcquisitionConditionDev"
  234. )