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

Change default_service_config to google.protobuf.Struct #237

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

EdSchouten
Copy link
Member

The gRPC service config is based on a Protobuf message structure defined here:

https://github.com/grpc/grpc-proto/blob/master/grpc/service_config/service_config.proto

Ideally we'd just embed grpc.service_config.ServiceConfig into this message, but that's easier said than done. There is no canonical Go module containing the generated Protobuf source files.

Furthermore, grpc-go ships with some copies of those, but has them placed inside internal/. This means that even if we were to generate those ourselves, we'd run into a Protobuf registration conflict at runtime.

Use google.protobuf.Struct, so that we can at least embed these service configs without requiring excessive quoting.

This is a continuation of #236.

@EdSchouten EdSchouten force-pushed the eschouten/20250123-service-config branch 2 times, most recently from da874c0 to cca1c48 Compare January 23, 2025 08:27
The gRPC service config is based on a Protobuf message structure defined
here:

https://github.com/grpc/grpc-proto/blob/master/grpc/service_config/service_config.proto

Ideally we'd just embed grpc.service_config.ServiceConfig into this
message, but that's easier said than done. There is no canonical Go
module containing the generated Protobuf source files.

Furthermore, grpc-go ships with some copies of those, but has them
placed inside internal/. This means that even if we were to generate
those ourselves, we'd run into a Protobuf registration conflict at
runtime.

Use google.protobuf.Struct, so that we can at least embed these service
configs without requiring excessive quoting.

This is a continuation of #236.
@EdSchouten EdSchouten force-pushed the eschouten/20250123-service-config branch from cca1c48 to c049384 Compare January 23, 2025 08:27
@EdSchouten EdSchouten merged commit 07366c6 into master Jan 23, 2025
1 check passed
@EdSchouten EdSchouten deleted the eschouten/20250123-service-config branch January 23, 2025 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant