config.go 630 B

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