Skip to content

Commit

Permalink
chore: bumped grpc-gateway version to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
petomalina committed May 19, 2021
1 parent 926d2d7 commit 0f00d2b
Show file tree
Hide file tree
Showing 13 changed files with 577 additions and 149 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PROTOC_INCLUDES= -Iproto -Iproto/3rdparty/api-common-protos -Iproto/3rdparty/pro

gen:
@$(foreach SERVICE,$(SERVICES), protoc $(PROTOC_INCLUDES)\
--go_out=Mgoogle/protobuf/wrappers.proto,plugins=grpc,paths=source_relative:examples/api \
--go_out=Mgoogle/protobuf/wrappers.proto,paths=source_relative:examples/api \
--go-grpc_out=paths=source_relative:examples/api \
--grpc-gateway_out=logtostderr=true,allow_patch_feature=false,paths=source_relative:examples/api \
"proto/$(SERVICE)".proto;)
93 changes: 2 additions & 91 deletions examples/api/echo.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 6 additions & 8 deletions examples/api/echo.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

101 changes: 101 additions & 0 deletions examples/api/echo_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/grpc-http-pubsub/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"github.com/blendle/zapdriver"
"github.com/grpc-ecosystem/go-grpc-middleware/util/metautils"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
"github.com/petomalina/xrpc/examples/api"
"github.com/petomalina/xrpc/pkg/multiplexer"
"go.uber.org/zap"
Expand Down
2 changes: 1 addition & 1 deletion examples/grpc-http-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"context"
"github.com/grpc-ecosystem/go-grpc-middleware/util/metautils"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
"github.com/petomalina/xrpc/examples/api"
"github.com/petomalina/xrpc/pkg/multiplexer"
"go.uber.org/zap"
Expand Down
2 changes: 1 addition & 1 deletion examples/grpc-http/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"github.com/blendle/zapdriver"
"github.com/grpc-ecosystem/go-grpc-middleware/util/metautils"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
"github.com/petomalina/xrpc/examples/api"
"github.com/petomalina/xrpc/pkg/multiplexer"
"go.uber.org/zap"
Expand Down
15 changes: 7 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,16 @@ go 1.15
require (
github.com/blendle/zapdriver v1.3.1
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect
github.com/golang/protobuf v1.4.1
github.com/gorilla/websocket v1.4.2 // indirect
github.com/golang/protobuf v1.5.2
github.com/grpc-ecosystem/go-grpc-middleware v1.2.2
github.com/grpc-ecosystem/grpc-gateway v1.15.0
github.com/grpc-ecosystem/grpc-gateway/v2 v2.4.0
github.com/improbable-eng/grpc-web v0.13.0
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect
github.com/rs/cors v1.7.0 // indirect
github.com/stretchr/testify v1.6.1
github.com/stretchr/testify v1.7.0
go.uber.org/zap v1.16.0
golang.org/x/net v0.0.0-20200904194848-62affa334b73
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013
google.golang.org/grpc v1.32.0
google.golang.org/protobuf v1.25.0
golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4
google.golang.org/genproto v0.0.0-20210426193834-eac7f76ac494
google.golang.org/grpc v1.37.0
google.golang.org/protobuf v1.26.0
)

0 comments on commit 0f00d2b

Please sign in to comment.