config.go 612 B

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