config.go 736 B

1234567891011121314151617181920212223242526272829303132333435
  1. package config
  2. import (
  3. "bp.jydev.jianyu360.cn/CRM/networkManage/entity"
  4. "github.com/zeromicro/go-zero/rest"
  5. "github.com/zeromicro/go-zero/zrpc"
  6. )
  7. type Config struct {
  8. rest.RestConf
  9. Gateway struct {
  10. ServerCode string
  11. Etcd []string
  12. }
  13. UserCenterKey string
  14. PowerCheckCenterKey string
  15. EntManageApplication string
  16. CodeServiceConf zrpc.RpcClientConf
  17. }
  18. type Db struct {
  19. Mysql entity.Mysql `json:"mysql"`
  20. Mongo entity.Mongo `json:"mongo"`
  21. Es entity.EsStruct `json:"es"`
  22. Clickhouse *CHouseConfig
  23. Redis string `json:"redis"`
  24. }
  25. type CHouseConfig struct {
  26. Addr string
  27. UserName string
  28. Password string
  29. DbName string
  30. MaxIdleConns int
  31. MaxOpenConns int
  32. }