config.go 483 B

1234567891011121314151617181920212223242526272829
  1. package config
  2. import (
  3. "github.com/zeromicro/go-zero/rest"
  4. "github.com/zeromicro/go-zero/zrpc"
  5. "jyBXCore/entity"
  6. )
  7. type Config struct {
  8. rest.RestConf
  9. Webrpcport int64
  10. Gateway struct {
  11. ServerCode string
  12. Etcd []string
  13. }
  14. Core zrpc.RpcClientConf
  15. MgoLogsName string
  16. MgoLogsCount int
  17. DetailMosaicTxt string
  18. SearchMosaic map[string]bool
  19. }
  20. type Db struct {
  21. Mongo entity.Mongo `json:"mongo"`
  22. }
  23. type Routes struct {
  24. ExcludeRoute []string
  25. }