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

tonic-reflection: Restructure module to prep reintroducing v1alpha #1802

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

ttkjesper
Copy link
Contributor

To simplify API verification, this is a prepatory change to shift around the v1 support to allow for a cleaner v1alpha reintroduction.

  • Created a multi-file version of the server.rs module
    • Added mod.rs containing the base Error with associated imports / exports
    • Added v1.rs containing the v1 version of the reflection server

Motivation

The current v1 reflection API support is lacking in various existing tools (like Postman and Kreya).

From feedback in #1787, we should split the change into multiple PRs.

Solution

This change splits the server module to enable us to re-add the v1alpha support in a later PR a cleaner fashion.

To simplify API verification, this is a prepatory change to shift
around the v1 support to allow for a cleaner v1alpha reintroduction.

* Created a multi-file version of the server.rs module
* Added mod.rs containing the base error with associated imports
* Added v1.rs containing the v1 version of the reflection server
Copy link
Contributor

@djc djc left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

@djc djc added this pull request to the merge queue Jul 15, 2024
Merged via the queue into hyperium:master with commit aa57ffe Jul 15, 2024
16 checks passed
mkatychev added a commit to knox-networks/tonic that referenced this pull request Aug 19, 2024
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.

2 participants