-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Add an optional implementation of streams using generics #7057
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
Changes from 4 commits
d551dad
faab808
f75c2d6
06c9a00
9ddc54d
8a9ade3
617090d
cc25c38
ba0d4e3
586bde9
9f4fa15
2230a4e
08f3f64
f159599
8c66d69
8f93711
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ import ( | |
const version = "1.3.0" | ||
|
||
var requireUnimplemented *bool | ||
var useGenericStreams *bool | ||
|
||
func main() { | ||
showVersion := flag.Bool("version", false, "print the version and exit") | ||
|
@@ -55,6 +56,7 @@ func main() { | |
|
||
var flags flag.FlagSet | ||
requireUnimplemented = flags.Bool("require_unimplemented_servers", true, "set to false to match legacy behavior") | ||
useGenericStreams = flags.Bool("use_generic_streams", false, "set to true to use generic types for streaming client and server objects") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 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 commentThe 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 commentThe 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. |
||
|
||
protogen.Options{ | ||
ParamFunc: flags.Set, | ||
|
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.
Uh oh!
There was an error while loading. Please reload this page.