蛋蛋星球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 15 KiB

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