-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
…in services (grpc#3657)
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# protoc-gen-go-grpc | ||
|
||
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 | ||
`Unimplemented<ServiceName>Server` 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 `requireUnimplementedServers=false`. | ||
E.g.: | ||
|
||
``` | ||
protoc --go-grpc_out=requireUnimplementedServers=false[,other options...]:. \ | ||
``` | ||
|
||
Note that this is not recommended, and the option is only provided to restore | ||
backward compatibility with previously-generated code. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.