config.go 589 B

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