config.go 470 B

12345678910111213141516171819202122232425
  1. package config
  2. import (
  3. "github.com/zeromicro/go-zero/rest"
  4. "github.com/zeromicro/go-zero/zrpc"
  5. "jygit.jydev.jianyu360.cn/ApplicationCenter/publicService/api/entity"
  6. )
  7. type Config struct {
  8. rest.RestConf
  9. Webrpcport int64
  10. Gateway struct {
  11. ServerCode string
  12. Etcd []string
  13. }
  14. PublicService zrpc.RpcClientConf
  15. MgoLogsName string
  16. MgoLogsCount int
  17. }
  18. type Routes struct {
  19. ExcludeRoute []string
  20. }
  21. type Db struct {
  22. Mongo entity.Mongo `json:"mongo"`
  23. }