-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Add an optional implementation of streams using generics #7057
Merged
Merged
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d551dad
Add generic interfaces and implementations for streams
aarongable faab808
Add codegen to use the new generic implementations
aarongable f75c2d6
Update route_guide example to show the result
aarongable 06c9a00
Fix go-vet complaint
aarongable 9ddc54d
Regenerate all protos
aarongable 8a9ade3
Undo comment change in vet.sh
aarongable 617090d
Merge branch master into generic-streams
aarongable cc25c38
Move from experimental package to grpc package
aarongable ba0d4e3
Regenerate all protos with new version
aarongable 586bde9
Factor out interface type construction into helper func
aarongable 9f4fa15
Change type in generated interfaces and signatures
aarongable 2230a4e
Merge branch master into generic-streams
aarongable 08f3f64
Address review comments
aarongable f159599
Fix protoc-gen-go-grpc_test.sh to match regenerate.sh
aarongable 8c66d69
Fix Req->Res in ServerStreaming interfaces
aarongable 8f93711
Mark flag as experimental
aarongable File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 12 additions & 50 deletions
62
credentials/alts/internal/proto/grpc_gcp/handshaker_grpc.pb.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the new flag be marked experimental in the next release of protoc-gen-go-grpc? By experimental, I mean flag string be
use_generic_streams_experimental
and the usage says something likeThis flag is EXPERIMENTAL and may be changed or removed in a later release.
Later when we stabilize the API we can switch the flag's default to true and remove the experimental tags.
@dfawley, wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense - the idea would be to delete the flag entirely one release after it is on by default. So:
(All separated by some reasonable amount of time to find bugs/etc.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me! I've updated the name and description of the flag, updated the two places it is referenced in scripts in this repo, and updated the release notes in the PR description.