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

grpcreflect supports v1 of the reflection service #535

Merged
merged 2 commits into from Oct 6, 2022
Merged

Conversation

jhump
Copy link
Owner

@jhump jhump commented Oct 6, 2022

The grpcreflect client has, up to this point, only worked with the original "v1alpha" version of server reflection.

This updates it to also work with v1. This requires a tweak to the API, since it previously included "v1alpha" in the method signature, requiring the caller to provide a v1alpha RPC stub.

Now the caller can provide a connection interface (not a particular stub), and the client can try both, attempting to use v1 first and then falling back to v1alpha if that returns an "unimplemented" error.

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.

None yet

1 participant