Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/protoc-gen-go-grpc: revert to interface-based service registration #3911

Merged
merged 4 commits into from
Sep 29, 2020

Conversation

dfawley
Copy link
Member

@dfawley dfawley commented Sep 28, 2020

Adds Unsafe<Foo>Server interface to enable users to embed it to satisfy the Unimplemented embed requirement for FooServer.

Fixes #3885

vet.sh Outdated Show resolved Hide resolved
@dfawley dfawley merged commit 02cd07d into grpc:master Sep 29, 2020
@dfawley dfawley deleted the protoc branch September 29, 2020 22:17

protogen.Options{
ParamFunc: flags.Set,
}.Run(func(gen *protogen.Plugin) error {
gen.SupportedFeatures = uint64(pluginpb.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be kept as this means that the tool supports optional parameters

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack, thanks for catching that. I'll re-add shortly.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: API Change Breaking API changes (experimental APIs only!)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

protoc-gen-go-grpc: final service registration API decision for v1.0
3 participants