test.toml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. [database]
  2. [database.lottery]
  3. addr = "127.0.0.1:3306"
  4. dsn = "test:test@tcp(127.0.0.1:3306)/test?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  5. readDSN = ["test:test@tcp(127.0.0.2:3306)/test? timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4","test:test@tcp(127.0.0.3:3306)/test?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  6. active = 20
  7. idle = 10
  8. idleTimeout ="4h"
  9. queryTimeout = "100ms"
  10. execTimeout = "100ms"
  11. tranTimeout = "200ms"
  12. [redis]
  13. [redis.lottery]
  14. name = "xlottery-job"
  15. proto = "tcp"
  16. addr = ""
  17. idle = 10
  18. active = 10
  19. dialTimeout = "1s"
  20. readTimeout = "1s"
  21. writeTimeout = "1s"
  22. idleTimeout = "10s"
  23. expire = "1m"
  24. [Cfg]
  25. ExpireCountFrequency = "*/1 * * * * ?"
  26. [giftPaySub]
  27. key = "ec4c0820d525d67b"
  28. secret = "e20f8f664bf10722efeb6aac0cc16011"
  29. group = "LiveGiftSendByPayLiveLive-Xlottery-S"
  30. topic = "LiveGiftSendByPay-T"
  31. action = "sub"
  32. offset = "new"
  33. name = "xlottery/xlottery-pay-sub"
  34. proto = "tcp"
  35. addr = "172.18.33.50:6205"
  36. idle = 100
  37. active = 100
  38. dialTimeout = "1s"
  39. readTimeout = "60s"
  40. writeTimeout = "1s"
  41. idleTimeout = "10s"
  42. [giftFreeSub]
  43. key = "ec4c0820d525d67b"
  44. secret = "e20f8f664bf10722efeb6aac0cc16011"
  45. group = "LiveGiftSendByFree-LiveLive-Xlottery-S"
  46. topic = "LiveGiftSendByFree-T"
  47. action = "sub"
  48. offset = "new"
  49. name = "xlottery/xlottery-free-sub"
  50. proto = "tcp"
  51. addr = "172.18.33.50:6205"
  52. idle = 100
  53. active = 100
  54. dialTimeout = "1s"
  55. readTimeout = "60s"
  56. writeTimeout = "1s"
  57. idleTimeout = "10s"