config.go 972 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package config
  2. import (
  3. "app.yhyue.com/moapp/jybase/mysql"
  4. "github.com/zeromicro/go-zero/core/logx"
  5. "github.com/zeromicro/go-zero/zrpc"
  6. )
  7. type Config struct {
  8. zrpc.RpcServerConf
  9. UserCenterRpc zrpc.RpcClientConf
  10. Logx logx.LogConf
  11. Mysql struct {
  12. JianYu *mysql.Mysql
  13. JyDoc *mysql.Mysql
  14. Bi *mysql.Mysql
  15. Tidb *mysql.Mysql
  16. BiTidb *mysql.Mysql
  17. CallTidb *mysql.Mysql
  18. }
  19. Mongo struct {
  20. Qfw struct {
  21. MongodbAddr string
  22. Size int
  23. DbName string
  24. }
  25. }
  26. Es struct {
  27. Address string
  28. DbSize int
  29. Index string
  30. IType string
  31. Version string
  32. UserName string
  33. Password string
  34. }
  35. Mode string
  36. AddCountLimit int
  37. DrawCountLimit int
  38. TopicName string
  39. NsqUrl string
  40. RedisAddress []string
  41. Hlyj struct {
  42. Appid string
  43. Account string
  44. Secret string
  45. TokenUrl string
  46. CallFlag int
  47. CallUrl string
  48. Integratedid string
  49. }
  50. }