mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
gctrpc: generate protobuf files with latest versions of tools (#721)
* gctrpc: generate protobuf files with latest versions of tools * gctrpc: generation scripts now use protoc-gen-openapiv2 (instead of protoc-gen-swagger) * gtcrpc: update readme
This commit is contained in:
@@ -37,15 +37,15 @@ Then use `go get` to download the following packages:
|
||||
|
||||
```bash
|
||||
go get github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway
|
||||
go get github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
|
||||
go get github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2
|
||||
go get google.golang.org/protobuf/cmd/protoc-gen-go
|
||||
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc
|
||||
```
|
||||
|
||||
This will place three binaries in your `$GOBIN`;
|
||||
This will place the following binaries in your `$GOBIN`;
|
||||
|
||||
* `protoc-gen-grpc-gateway`
|
||||
* `protoc-gen-swagger`
|
||||
* `protoc-gen-openapiv2`
|
||||
* `protoc-gen-go`
|
||||
* `protoc-gen-go-grpc`
|
||||
|
||||
|
||||
@@ -6,4 +6,4 @@ export GOPATH=$(go env GOPATH)
|
||||
protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --go_out=. rpc.proto
|
||||
protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --go-grpc_out=. rpc.proto
|
||||
protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --grpc-gateway_out=logtostderr=true:. rpc.proto
|
||||
protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --swagger_out=logtostderr=true:. rpc.proto
|
||||
protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --openapiv2_out=logtostderr=true:. rpc.proto
|
||||
|
||||
@@ -6,4 +6,4 @@ REM %GOPATH%\pkg\mod\github.com\grpc-ecosystem\grpc-gateway\v2@v2.0.1\third_part
|
||||
protoc -I=. -I=%GOPATH%\src -I=%GOPATH%\src\github.com\grpc-ecosystem\grpc-gateway\third_party\googleapis --go_out=. rpc.proto
|
||||
protoc -I=. -I=%GOPATH%\src -I=%GOPATH%\src\github.com\grpc-ecosystem\grpc-gateway\third_party\googleapis --go-grpc_out=. rpc.proto
|
||||
protoc -I=. -I=%GOPATH%\src -I=%GOPATH%\src\github.com\grpc-ecosystem\grpc-gateway\third_party\googleapis --grpc-gateway_out=logtostderr=true:. rpc.proto
|
||||
protoc -I=. -I=%GOPATH%\src -I=%GOPATH%\src\github.com\grpc-ecosystem\grpc-gateway\third_party\googleapis --swagger_out=logtostderr=true:. rpc.proto
|
||||
protoc -I=. -I=%GOPATH%\src -I=%GOPATH%\src\github.com\grpc-ecosystem\grpc-gateway\third_party\googleapis --openapiv2_out=logtostderr=true:. rpc.proto
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user