grpc-go/cmd/protoc-gen-go-grpc
Arvind Bright a2f8e612d7
cmd/protoc-gen-go-grpc: reuse route_guide_grpc.pb.go as golden file (#7134)
2024-04-16 16:56:07 -07:00
..
README.md cmd/protoc-gen-go-grpc: add change detector test (#7072) 2024-04-05 16:39:23 -07:00
go.mod deps: update dependencies for all modules (#7061) 2024-03-27 14:42:11 -04:00
go.sum deps: update dependencies for all modules (#7061) 2024-03-27 14:42:11 -04:00
grpc.go cmd/protoc-gen-go-grpc: replace usages of deprecated API (#7071) 2024-04-01 15:53:22 -07:00
main.go cmd/protoc-gen-go-grpc: bump -version to 1.3.0 for release (#6064) 2023-03-01 09:58:20 -08:00
protoc-gen-go-grpc_test.sh cmd/protoc-gen-go-grpc: reuse route_guide_grpc.pb.go as golden file (#7134) 2024-04-16 16:56:07 -07:00

README.md

protoc-gen-go-grpc

This tool generates Go language bindings of services in protobuf definition files for gRPC. For usage information, please see our quick start guide.

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 require_unimplemented_servers=false. E.g.:

  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.