Skip to content
New issue

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

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

Already on GitHub? # to your account

Register Protobuf Enums #320

Merged
merged 2 commits into from
Apr 22, 2022
Merged

Register Protobuf Enums #320

merged 2 commits into from
Apr 22, 2022

Conversation

saterus
Copy link
Contributor

@saterus saterus commented Apr 22, 2022

In order to use https://github.com/grpc-ecosystem/grpc-gateway with Gazette's broker/consumer services, we need to enable a gogoproto option to register any enums with the goproto registry.

The GRPC Gateway needs to read the enum definitions to properly translate messages. However, it only reads these definitions from goproto's registry, not gogoproto's registry. Luckily, gogoproto supports this as an option.

See https://jbrandhorst.com/post/gogoproto/ for more information about the tenuous compatibility between gogoproto and the GRPC gateway.


This change is Reviewable

Alex Burkhart added 2 commits April 22, 2022 11:35
The GRPC Gateway needs to read the enum definitions to properly
translate messages. However, it only reads these definitions from
goproto's registry, not gogoproto's registry. Luckily, gogoproto
supports this as an option.

See https://jbrandhorst.com/post/gogoproto/ for more information about
the tenuous compatibility between gogoproto and the GRPC gateway.
@saterus saterus requested a review from jgraettinger April 22, 2022 15:47
@saterus saterus self-assigned this Apr 22, 2022
Copy link
Contributor

@jgraettinger jgraettinger left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @saterus)

@saterus saterus merged commit 55af5cf into master Apr 22, 2022
@saterus saterus deleted the alex/register-proto-enums branch April 22, 2022 15:59
saterus pushed a commit to estuary/flow that referenced this pull request Apr 22, 2022
Brings in gazette/core#320 to support GRPC
Gateway.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants