蛋蛋星球RabbitMq消费项目
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

258 lines
8.8 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: "egg.energy",
  14. Name: "egg_energy_star_level_dividend_queue",
  15. Type: TopicQueueType,
  16. IsPersistent: false,
  17. RoutKey: "star_level_dividend",
  18. BindKey: "",
  19. ConsumeFunName: "EggEnergyStartLevelDividendConsume",
  20. },
  21. {
  22. ExchangeName: "egg.energy",
  23. Name: "egg_energy_fund_data_queue",
  24. Type: DirectQueueType,
  25. IsPersistent: false,
  26. RoutKey: "fund_data",
  27. BindKey: "",
  28. ConsumeFunName: "EggEnergyDealFundDataConsume",
  29. },
  30. {
  31. ExchangeName: "egg.energy",
  32. Name: "egg_energy_platform_revenue_data_queue",
  33. Type: DirectQueueType,
  34. IsPersistent: false,
  35. RoutKey: "platform_revenue_data",
  36. BindKey: "",
  37. ConsumeFunName: "EggEnergyDealPlatformRevenueDataConsume",
  38. },
  39. {
  40. ExchangeName: "egg.energy",
  41. Name: "egg_deal_user_virtual_coin_queue",
  42. Type: DirectQueueType,
  43. IsPersistent: false,
  44. RoutKey: "deal_user_virtual_coin",
  45. BindKey: "",
  46. ConsumeFunName: "EggEnergyDealUserVirtualCoinDataConsume ",
  47. },
  48. {
  49. ExchangeName: "im.egg.energy",
  50. Name: "im_egg_energy_batch_send_message_queue",
  51. Type: DirectQueueType,
  52. IsPersistent: false,
  53. RoutKey: "batch_send_message_data",
  54. BindKey: "",
  55. ConsumeFunName: "IMEggEnergyBatchSendMessageDataConsume",
  56. },
  57. {
  58. ExchangeName: "im.egg.energy",
  59. Name: "im_egg_energy_del_friend_comment_circle_queue",
  60. Type: DirectQueueType,
  61. IsPersistent: false,
  62. RoutKey: "del_friend_circle_comment_data",
  63. BindKey: "",
  64. ConsumeFunName: "IMEggEnergyDelFriendCircleDataConsume",
  65. },
  66. {
  67. ExchangeName: "egg.app",
  68. Name: "egg_fin_withdraw_apply",
  69. Type: DirectQueueType,
  70. IsPersistent: false,
  71. RoutKey: "egg_fin_withdraw_apply",
  72. BindKey: "",
  73. ConsumeFunName: "EggFinWithdrawApplyDataConsume",
  74. },
  75. {
  76. ExchangeName: "egg.energy",
  77. Name: "egg_energy_settlement_public_give_activity_coin",
  78. Type: DirectQueueType,
  79. IsPersistent: false,
  80. RoutKey: "settlement_public_give_activity_coin",
  81. BindKey: "",
  82. ConsumeFunName: "EggEnergySettlementPublicGiveActivityCoinConsume",
  83. },
  84. {
  85. ExchangeName: "egg.energy",
  86. Name: "egg_energy_start_exchange_egg_energy",
  87. Type: DirectQueueType,
  88. IsPersistent: false,
  89. RoutKey: "start_exchange_egg_energy",
  90. BindKey: "",
  91. ConsumeFunName: "EggEnergyStartExchangeGreenEnergyConsume",
  92. },
  93. {
  94. ExchangeName: "egg.energy",
  95. Name: "egg_energy_auto_exchange_egg_energy",
  96. Type: DirectQueueType,
  97. IsPersistent: false,
  98. RoutKey: "auto_exchange_egg_energy",
  99. BindKey: "",
  100. ConsumeFunName: "EggEnergyAutoExchangeGreenEnergyConsume",
  101. },
  102. {
  103. ExchangeName: "egg.jpush",
  104. Name: "egg_jpush_record_queue",
  105. Type: DirectQueueType,
  106. IsPersistent: false,
  107. RoutKey: "jpush_record",
  108. BindKey: "",
  109. ConsumeFunName: "JpushRecordConsume",
  110. },
  111. {
  112. ExchangeName: "egg.aliyun_sms",
  113. Name: "egg_aliyun_sms_record_queue_new",
  114. Type: DirectQueueType,
  115. IsPersistent: false,
  116. RoutKey: "aliyun_sms_record",
  117. BindKey: "",
  118. ConsumeFunName: "AliyunSmsRecordConsume",
  119. },
  120. {
  121. ExchangeName: "egg.advertising",
  122. Name: "egg_advertising_smash",
  123. Type: DirectQueueType,
  124. IsPersistent: false,
  125. RoutKey: "advertising_smash",
  126. BindKey: "",
  127. ConsumeFunName: "AdvertisingSmashConsume",
  128. },
  129. {
  130. ExchangeName: "egg.advertising",
  131. Name: "egg_advertising_sign",
  132. Type: DirectQueueType,
  133. IsPersistent: false,
  134. RoutKey: "advertising_sign",
  135. BindKey: "",
  136. ConsumeFunName: "AdvertisingSignConsume",
  137. },
  138. {
  139. ExchangeName: "egg.app",
  140. Name: "egg_new_user_register_queue",
  141. Type: DirectQueueType,
  142. IsPersistent: false,
  143. RoutKey: "egg_new_user_register",
  144. BindKey: "",
  145. ConsumeFunName: "EggEnergyNewUserRegisterDataConsume",
  146. },
  147. {
  148. ExchangeName: "egg.app",
  149. Name: "egg_energy_user_ecpm",
  150. Type: DirectQueueType,
  151. IsPersistent: false,
  152. RoutKey: "user_ecpm",
  153. BindKey: "",
  154. ConsumeFunName: "EggEnergyDealUserECPMConsume",
  155. },
  156. {
  157. ExchangeName: "egg.canal.topic",
  158. Name: "egg_canal_invite_user_nums_queue",
  159. Type: DirectQueueType,
  160. IsPersistent: false,
  161. RoutKey: "egg_canal_invite_user_nums",
  162. BindKey: "",
  163. ConsumeFunName: "EggEnergyDealUserECPMConsume",
  164. },
  165. {
  166. ExchangeName: "egg.canal.topic",
  167. Name: "egg_canal_violate_nums_queue",
  168. Type: DirectQueueType,
  169. IsPersistent: false,
  170. RoutKey: "egg_canal_violate_nums",
  171. BindKey: "",
  172. ConsumeFunName: "EggCanalViolateNumsConsume",
  173. },
  174. {
  175. ExchangeName: "im.egg.energy",
  176. Name: "im_egg_energy_send_red_package_queue",
  177. Type: DirectQueueType,
  178. IsPersistent: false,
  179. RoutKey: "send_red_package",
  180. BindKey: "",
  181. ConsumeFunName: "IMEggEnergySendRedPackageConsume",
  182. },
  183. {
  184. ExchangeName: "egg.app",
  185. Name: "egg_record_active_queue",
  186. Type: DirectQueueType,
  187. IsPersistent: false,
  188. RoutKey: "egg_record_active",
  189. BindKey: "",
  190. ConsumeFunName: "EggRecordActiveDataConsume",
  191. },
  192. {
  193. ExchangeName: "egg.canal.topic",
  194. Name: "egg_canal_person_add_activity_value_queue",
  195. Type: DirectQueueType,
  196. IsPersistent: false,
  197. RoutKey: "egg_canal_person_add_activity_value",
  198. BindKey: "",
  199. ConsumeFunName: "EggCanalPersonAddActivityValueConsume",
  200. },
  201. {
  202. ExchangeName: "egg.video_playlet",
  203. Name: "egg_video_reward",
  204. Type: DirectQueueType,
  205. IsPersistent: false,
  206. RoutKey: "video",
  207. BindKey: "",
  208. ConsumeFunName: "VideoRewardFunName",
  209. },
  210. {
  211. ExchangeName: "egg.video_playlet",
  212. Name: "egg_playlet_reward",
  213. Type: DirectQueueType,
  214. IsPersistent: false,
  215. RoutKey: "playlet",
  216. BindKey: "",
  217. ConsumeFunName: "PlayletRewardFunName",
  218. },
  219. {
  220. ExchangeName: "egg.user",
  221. Name: "egg_user_delete",
  222. Type: DirectQueueType,
  223. IsPersistent: false,
  224. RoutKey: "user_delete",
  225. BindKey: "",
  226. ConsumeFunName: "UserDeleteConsume",
  227. },
  228. }
  229. const (
  230. AdvertisingSignConsume = "AdvertisingSignConsume"
  231. AdvertisingSmashConsume = "AdvertisingSmashConsume"
  232. JpushRecordFunName = "JpushRecordConsume"
  233. AliyunSmsRecordFunName = "AliyunSmsRecordConsume"
  234. EggEnergyStartLevelDividendFunName = "EggEnergyStartLevelDividendConsume"
  235. EggEnergyDealFundDataFunName = "EggEnergyDealFundDataConsume"
  236. EggEnergyDealPlatformRevenueDataFunName = "EggEnergyDealPlatformRevenueDataConsume"
  237. EggEnergyDealUserVirtualCoinDataFunName = "EggEnergyDealUserVirtualCoinDataConsume"
  238. IMEggEnergyBatchSendMessageDataFunName = "IMEggEnergyBatchSendMessageDataConsume"
  239. IMEggEnergyDelFriendCircleDataFunName = "IMEggEnergyDelFriendCircleDataConsume"
  240. EggFinWithdrawApplyDataConsumeFunName = "EggFinWithdrawApplyDataConsume"
  241. EggEnergySettlementPublicGiveActivityCoinFunName = "EggEnergySettlementPublicGiveActivityCoinConsume"
  242. EggEnergyStartExchangeGreenEnergyFunName = "EggEnergyStartExchangeGreenEnergyConsume"
  243. EggEnergyAutoExchangeGreenEnergyFunName = "EggEnergyAutoExchangeGreenEnergyConsume"
  244. EggEnergyNewUserRegisterDataFunName = "EggEnergyNewUserRegisterDataConsume"
  245. EggEnergyDealUserECPMFunName = "EggEnergyDealUserECPMConsume"
  246. EggCanalInviteUserNumsFunName = "EggCanalInviteUserNumsConsume"
  247. EggCanalViolateNumsFunName = "EggCanalViolateNumsConsume"
  248. IMEggEnergySendRedPackageFunName = "IMEggEnergySendRedPackageConsume"
  249. EggRecordActiveDataFunName = "EggRecordActiveDataConsume"
  250. EggCanalPersonAddActivityValueFunName = "EggCanalPersonAddActivityValueConsume"
  251. VideoRewardFunName = "VideoRewardFunName"
  252. PlayletRewardFunName = "PlayletRewardFunName"
  253. UserDeleteFunName = "UserDeleteConsume"
  254. )