config.go 741 B

123456789101112131415161718192021222324252627282930313233343536
  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. SelectBatchSize int
  14. ExportIdCachaPoolSize int
  15. ProjectYearLimit int
  16. EntNameList []string
  17. InitNetworkMaxSize int
  18. }
  19. type Db struct {
  20. Mysql entity.Mysql `json:"mysql"`
  21. Mongo entity.Mongo `json:"mongo"`
  22. Es entity.EsStruct `json:"es"`
  23. Clickhouse *CHouseConfig
  24. Redis string `json:"redis"`
  25. }
  26. type CHouseConfig struct {
  27. Addr string
  28. UserName string
  29. Password string
  30. DbName string
  31. MaxIdleConns int
  32. MaxOpenConns int
  33. }