config.go 450 B

12345678910111213141516171819202122232425262728
  1. package config
  2. import (
  3. "github.com/zeromicro/go-zero/rest"
  4. "github.com/zeromicro/go-zero/zrpc"
  5. "jyBXSubscribe/entity"
  6. )
  7. type Config struct {
  8. rest.RestConf
  9. AppId int64
  10. Webrpcport int64
  11. Gateway struct {
  12. ServerCode string
  13. Etcd []string
  14. }
  15. Subscribe zrpc.RpcClientConf
  16. MgoLogsName string
  17. MgoLogsCount int
  18. }
  19. type Db struct {
  20. MgoLog entity.MongoDBStruct `json:"mgoLog"`
  21. }
  22. type Routes struct {
  23. ExcludeRoute []string
  24. }