config.go 938 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. }
  18. Mongo struct {
  19. Qfw struct {
  20. MongodbAddr string
  21. Size int
  22. DbName string
  23. }
  24. }
  25. Es struct {
  26. Address string
  27. DbSize int
  28. Index string
  29. IType string
  30. Version string
  31. UserName string
  32. Password string
  33. }
  34. Mode string
  35. AddCountLimit int
  36. DrawCountLimit int
  37. TopicName string
  38. NsqUrl string
  39. RedisAddress []string
  40. Hlyj struct {
  41. Appid string
  42. Account string
  43. Secret string
  44. TokenUrl string
  45. CallFlag int
  46. CallUrl string
  47. Integratedid string
  48. }
  49. }