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

78 lines
2.7 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. const (
  68. EggEnergyStartLevelDividendFunName = "EggEnergyStartLevelDividendConsume"
  69. EggEnergyDealFundDataFunName = "EggEnergyDealFundDataConsume"
  70. EggEnergyDealPlatformRevenueDataFunName = "EggEnergyDealPlatformRevenueDataConsume"
  71. EggEnergyDealUserVirtualCoinDataFunName = "EggEnergyDealUserVirtualCoinDataConsume"
  72. IMEggEnergyBatchSendMessageDataFunName = "IMEggEnergyBatchSendMessageDataConsume"
  73. IMEggEnergyDelFriendCircleDataFunName = "IMEggEnergyDelFriendCircleDataConsume"
  74. )