config.go 571 B

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