0
0
mirror of https://github.com/crazy-max/diun.git synced 2024-12-22 19:38:28 +00:00
crazy-max_diun/vendor/google.golang.org/grpc/cmd/protoc-gen-go-grpc
dependabot[bot] 9830c08e30
chore(deps): bump google.golang.org/grpc/cmd/protoc-gen-go-grpc
Bumps [google.golang.org/grpc/cmd/protoc-gen-go-grpc](https://github.com/grpc/grpc-go) from 1.3.0 to 1.5.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.3.0...v1.5.1)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc/cmd/protoc-gen-go-grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-15 12:56:57 +00:00
..
grpc.go chore(deps): bump google.golang.org/grpc/cmd/protoc-gen-go-grpc 2024-12-15 12:56:57 +00:00
LICENSE chore: go mod vendor 2024-12-14 22:30:21 +01:00
main.go chore(deps): bump google.golang.org/grpc/cmd/protoc-gen-go-grpc 2024-12-15 12:56:57 +00:00
protoc-gen-go-grpc_test.sh chore(deps): bump google.golang.org/grpc/cmd/protoc-gen-go-grpc 2024-12-15 12:56:57 +00:00
README.md chore(deps): bump google.golang.org/grpc/cmd/protoc-gen-go-grpc 2024-12-15 12:56:57 +00:00

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.

When embedding the Unimplemented<ServiceName>Server in a struct that implements the service, it should be embedded by value instead of as a pointer. If it is embedded as a pointer, it must be assigned to a valid, non-nil pointer or else unimplemented methods would panic when called. This is tested at service registration time, and will lead to a panic in Register<ServiceName>Server if it is not embedded properly.