蛋蛋星球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.
 
 
 
 
 

369 lines
13 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.app",
  104. Name: "add_public_platoon_user_relation_commission",
  105. Type: DirectQueueType,
  106. IsPersistent: false,
  107. RoutKey: "add_public_platoon_user_relation_commission",
  108. BindKey: "",
  109. ConsumeFunName: "AddPublicPlatoonUserRelationCommissionConsume",
  110. },
  111. {
  112. ExchangeName: "egg.jpush",
  113. Name: "egg_jpush_record_queue",
  114. Type: DirectQueueType,
  115. IsPersistent: false,
  116. RoutKey: "jpush_record",
  117. BindKey: "",
  118. ConsumeFunName: "JpushRecordConsume",
  119. },
  120. {
  121. ExchangeName: "egg.aliyun_sms",
  122. Name: "egg_aliyun_sms_record_queue_new",
  123. Type: DirectQueueType,
  124. IsPersistent: false,
  125. RoutKey: "aliyun_sms_record",
  126. BindKey: "",
  127. ConsumeFunName: "AliyunSmsRecordConsume",
  128. },
  129. {
  130. ExchangeName: "egg.advertising",
  131. Name: "egg_advertising_smash",
  132. Type: DirectQueueType,
  133. IsPersistent: false,
  134. RoutKey: "advertising_smash",
  135. BindKey: "",
  136. ConsumeFunName: "AdvertisingSmashConsume",
  137. },
  138. {
  139. ExchangeName: "egg.advertising",
  140. Name: "egg_advertising_sign",
  141. Type: DirectQueueType,
  142. IsPersistent: false,
  143. RoutKey: "advertising_sign",
  144. BindKey: "",
  145. ConsumeFunName: "AdvertisingSignConsume",
  146. },
  147. {
  148. ExchangeName: "egg.app",
  149. Name: "egg_new_user_register_queue",
  150. Type: DirectQueueType,
  151. IsPersistent: false,
  152. RoutKey: "egg_new_user_register",
  153. BindKey: "",
  154. ConsumeFunName: "EggEnergyNewUserRegisterDataConsume",
  155. },
  156. {
  157. ExchangeName: "egg.energy",
  158. Name: "egg_energy_user_ecpm",
  159. Type: DirectQueueType,
  160. IsPersistent: false,
  161. RoutKey: "user_ecpm",
  162. BindKey: "",
  163. ConsumeFunName: "EggEnergyDealUserECPMConsume",
  164. },
  165. {
  166. ExchangeName: "egg.energy",
  167. Name: "egg_energy_user_ecpm_temporary",
  168. Type: DirectQueueType,
  169. IsPersistent: false,
  170. RoutKey: "user_ecpm_temporary",
  171. BindKey: "",
  172. ConsumeFunName: "TemporaryEggEnergyDealUserECPMConsume",
  173. },
  174. {
  175. ExchangeName: "egg.canal.topic",
  176. Name: "egg_canal_invite_user_nums_queue",
  177. Type: DirectQueueType,
  178. IsPersistent: false,
  179. RoutKey: "user_relate",
  180. BindKey: "",
  181. ConsumeFunName: "EggCanalInviteUserNumsConsume",
  182. },
  183. {
  184. ExchangeName: "egg.canal.topic",
  185. Name: "egg_canal_violate_nums_queue",
  186. Type: DirectQueueType,
  187. IsPersistent: false,
  188. RoutKey: "user_tag_records",
  189. BindKey: "",
  190. ConsumeFunName: "EggCanalViolateNumsConsume",
  191. },
  192. {
  193. ExchangeName: "im.egg.energy",
  194. Name: "im_egg_energy_send_red_package_queue",
  195. Type: DirectQueueType,
  196. IsPersistent: false,
  197. RoutKey: "send_red_package",
  198. BindKey: "",
  199. ConsumeFunName: "IMEggEnergySendRedPackageConsume",
  200. },
  201. {
  202. ExchangeName: "egg.app",
  203. Name: "egg_record_active_queue",
  204. Type: DirectQueueType,
  205. IsPersistent: false,
  206. RoutKey: "egg_record_active",
  207. BindKey: "",
  208. ConsumeFunName: "EggRecordActiveDataConsume",
  209. },
  210. {
  211. ExchangeName: "egg.canal.topic",
  212. Name: "egg_canal_person_add_activity_value_queue",
  213. Type: DirectQueueType,
  214. IsPersistent: false,
  215. RoutKey: "egg_canal_user_virtual_coin_flow",
  216. BindKey: "",
  217. ConsumeFunName: "EggCanalPersonAddActivityValueConsume",
  218. },
  219. {
  220. ExchangeName: "egg.video_playlet",
  221. Name: "egg_video_reward",
  222. Type: DirectQueueType,
  223. IsPersistent: false,
  224. RoutKey: "video",
  225. BindKey: "",
  226. ConsumeFunName: "VideoRewardFunName",
  227. },
  228. {
  229. ExchangeName: "egg.video_playlet",
  230. Name: "egg_playlet_reward",
  231. Type: DirectQueueType,
  232. IsPersistent: false,
  233. RoutKey: "playlet",
  234. BindKey: "",
  235. ConsumeFunName: "PlayletRewardFunName",
  236. },
  237. {
  238. ExchangeName: "egg.user",
  239. Name: "egg_user_delete",
  240. Type: DirectQueueType,
  241. IsPersistent: false,
  242. RoutKey: "user_delete",
  243. BindKey: "",
  244. ConsumeFunName: "UserDeleteConsume",
  245. },
  246. {
  247. ExchangeName: "egg.app",
  248. //Name: "egg_auto_score_test_queue",
  249. Name: "egg_auto_score_queue",
  250. Type: DirectQueueType,
  251. IsPersistent: false,
  252. //RoutKey: "egg_auto_score_test",
  253. RoutKey: "egg_auto_score",
  254. BindKey: "",
  255. ConsumeFunName: "EggEnergyAutoScoreConsume",
  256. },
  257. {
  258. ExchangeName: "egg.app",
  259. Name: "egg_slow_auto_up_lv",
  260. Type: DirectQueueType,
  261. IsPersistent: false,
  262. RoutKey: "egg_slow_auto_up_lv",
  263. BindKey: "",
  264. ConsumeFunName: "EggSlowAutoUpLvConsume",
  265. },
  266. {
  267. ExchangeName: "egg.canal.topic",
  268. Name: "egg_energy_user_activity",
  269. Type: DirectQueueType,
  270. IsPersistent: false,
  271. RoutKey: "egg_energy_user_activity",
  272. BindKey: "",
  273. ConsumeFunName: "EggEnergyUserActivityConsume",
  274. },
  275. {
  276. ExchangeName: "egg.canal.topic",
  277. Name: "egg_canal_user",
  278. Type: DirectQueueType,
  279. IsPersistent: false,
  280. RoutKey: "egg_canal_user",
  281. BindKey: "",
  282. ConsumeFunName: "EggCanalUserConsume",
  283. },
  284. {
  285. ExchangeName: "egg.energy",
  286. Name: "egg_energy_team_assistance_back",
  287. Type: DirectQueueType,
  288. IsPersistent: false,
  289. RoutKey: "egg_energy_team_assistance",
  290. BindKey: "",
  291. ConsumeFunName: "EggEnergyTeamAssistanceConsume",
  292. },
  293. {
  294. ExchangeName: "egg.canal.topic",
  295. Name: "egg_user_virtual_coin_flow_aggregation",
  296. Type: DirectQueueType,
  297. IsPersistent: false,
  298. RoutKey: "egg_canal_user_virtual_coin_flow",
  299. BindKey: "",
  300. ConsumeFunName: "EggCanalUserVirtualCoinFlowAggregationConsume",
  301. },
  302. {
  303. ExchangeName: "egg.app",
  304. Name: "egg_send_friend_circle_queue",
  305. Type: DirectQueueType,
  306. IsPersistent: false,
  307. RoutKey: "egg_send_friend_circle",
  308. BindKey: "",
  309. ConsumeFunName: "EggSendFriendCircleDataConsume",
  310. },
  311. {
  312. ExchangeName: "egg.app",
  313. Name: "egg_comment_queue",
  314. Type: DirectQueueType,
  315. IsPersistent: false,
  316. RoutKey: "egg_comment",
  317. BindKey: "",
  318. ConsumeFunName: "EggCommentDataConsume",
  319. },
  320. {
  321. ExchangeName: "egg.canal.topic",
  322. Name: "egg_canal_energy_exchange_account_queue",
  323. Type: DirectQueueType,
  324. IsPersistent: false,
  325. RoutKey: "egg_canal_user_wallet_flow",
  326. BindKey: "",
  327. ConsumeFunName: "EggCanalEnergyExchangeAccountConsume",
  328. },
  329. }
  330. const (
  331. EggSlowAutoUpLvConsume = "EggSlowAutoUpLvConsume"
  332. EggEnergyUserActivityConsume = "EggEnergyUserActivityConsume"
  333. EggCanalUserConsume = "EggCanalUserConsume"
  334. JpushRecordFunName = "JpushRecordConsume"
  335. AliyunSmsRecordFunName = "AliyunSmsRecordConsume"
  336. EggEnergyStartLevelDividendFunName = "EggEnergyStartLevelDividendConsume"
  337. EggEnergyDealFundDataFunName = "EggEnergyDealFundDataConsume"
  338. EggEnergyDealPlatformRevenueDataFunName = "EggEnergyDealPlatformRevenueDataConsume"
  339. EggEnergyDealUserVirtualCoinDataFunName = "EggEnergyDealUserVirtualCoinDataConsume"
  340. IMEggEnergyBatchSendMessageDataFunName = "IMEggEnergyBatchSendMessageDataConsume"
  341. IMEggEnergyDelFriendCircleDataFunName = "IMEggEnergyDelFriendCircleDataConsume"
  342. EggFinWithdrawApplyDataConsumeFunName = "EggFinWithdrawApplyDataConsume"
  343. EggEnergySettlementPublicGiveActivityCoinFunName = "EggEnergySettlementPublicGiveActivityCoinConsume"
  344. EggEnergyStartExchangeGreenEnergyFunName = "EggEnergyStartExchangeGreenEnergyConsume"
  345. EggEnergyAutoExchangeGreenEnergyFunName = "EggEnergyAutoExchangeGreenEnergyConsume"
  346. EggEnergyNewUserRegisterDataFunName = "EggEnergyNewUserRegisterDataConsume"
  347. EggEnergyDealUserECPMFunName = "EggEnergyDealUserECPMConsume"
  348. EggEnergyTemporaryDealUserECPMFunName = "TemporaryEggEnergyDealUserECPMConsume"
  349. EggCanalInviteUserNumsFunName = "EggCanalInviteUserNumsConsume"
  350. EggCanalViolateNumsFunName = "EggCanalViolateNumsConsume"
  351. IMEggEnergySendRedPackageFunName = "IMEggEnergySendRedPackageConsume"
  352. EggRecordActiveDataFunName = "EggRecordActiveDataConsume"
  353. EggCanalPersonAddActivityValueFunName = "EggCanalPersonAddActivityValueConsume"
  354. VideoRewardFunName = "VideoRewardFunName"
  355. PlayletRewardFunName = "PlayletRewardFunName"
  356. UserDeleteFunName = "UserDeleteConsume"
  357. EggEnergyAutoScoreDataFunName = "EggEnergyAutoScoreConsume"
  358. PublicPlatoonUserRelationCommissionConsumeFunName = "AddPublicPlatoonUserRelationCommissionConsume"
  359. EggEnergyTeamAssistanceConsumeFunName = "EggEnergyTeamAssistanceConsume"
  360. EggCanalUserVirtualCoinFlowAggregationConsumeFunName = "EggCanalUserVirtualCoinFlowAggregationConsume"
  361. EggSendFriendCircleDataFunName = "EggSendFriendCircleDataConsume"
  362. EggCanalEnergyExchangeAccountFunName = "EggCanalEnergyExchangeAccountConsume"
  363. EggCommentDataFunName = "EggCommentDataConsume"
  364. )