config.go 714 B

1234567891011121314151617181920212223242526272829303132333435
  1. package config
  2. import (
  3. "bp.jydev.jianyu360.cn/CRM/networkManage/entity"
  4. "github.com/zeromicro/go-zero/rest"
  5. )
  6. type Config struct {
  7. rest.RestConf
  8. Gateway struct {
  9. ServerCode string
  10. Etcd []string
  11. }
  12. CacheTimeOut string
  13. BuyerBatch int
  14. ExportIdCachaPoolSize int
  15. ProjectYearLimit int
  16. EntNameList []string
  17. }
  18. type Db struct {
  19. Mysql entity.Mysql `json:"mysql"`
  20. Mongo entity.Mongo `json:"mongo"`
  21. Es entity.EsStruct `json:"es"`
  22. Clickhouse *CHouseConfig
  23. Redis string `json:"redis"`
  24. }
  25. type CHouseConfig struct {
  26. Addr string
  27. UserName string
  28. Password string
  29. DbName string
  30. MaxIdleConns int
  31. MaxOpenConns int
  32. }