gRPC反射服务
Summary: Author: 张亚飞 | Read Time: 1 minute read | Published: 2018-03-30
Filed under
—
Categories:
Linux
—
Tags:
Note,
api-gateway 网关
[](https://grpc-ecosystem.github.io/grpc-gateway/docs/tutorials/adding_annotations/)
首先安装以下的包
go get github.com/grpc-ecosystem/grpc-gateway
go get github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway
go get google.golang.org/protobuf/cmd/protoc-gen-go
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc
检查是否有以下命令
protoc-gen-grpc-gateway
protoc-gen-openapiv2
protoc-gen-go
protoc-gen-go-grpc
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
go get -u github.com/golang/protobuf/protoc-gen-go
[](https://github.com/googleapis/googleapis)
npm install @grpc/grpc-js
Comments