Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zxysilent/protoc-gen-go-grpc
https://github.com/zxysilent/protoc-gen-go-grpc
Last synced: about 6 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/zxysilent/protoc-gen-go-grpc
- Owner: zxysilent
- Created: 2024-06-19T03:22:16.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-06-24T02:26:31.000Z (5 months ago)
- Last Synced: 2024-06-24T03:32:01.560Z (5 months ago)
- Language: Go
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# protoc-gen-go-grpc
protoc-gen-go-grpc is a fork of https://google.golang.org/protobuf/cmd/protoc-gen-go.This tool generates Go language bindings of `service`s in protobuf definition
files for gRPC. For usage information, please see our [quick start
guide](https://grpc.io/docs/languages/go/quickstart/).## Future-proofing services
By default, to register services using the methods generated by this tool, the
service implementations must embed the corresponding
`UnimplementedServer` for future compatibility. This is a behavior
change from the grpc code generator previously included with `protoc-gen-go`.
To restore this behavior, set the option `require_unimplemented_servers=false`.
E.g.:```sh
protoc --go-grpc_out=. --go-grpc_opt=require_unimplemented_servers=false[,other options...] \
```Note that this is not recommended, and the option is only provided to restore
backward compatibility with previously-generated code.