Skip to content

Comments

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

Merged
djc merged 1 commit intohyperium:masterfrom
ttkgames:prep-v1alpha-support
Jul 15, 2024
Merged

tonic-reflection: Restructure module to prep reintroducing v1alpha#1802
djc merged 1 commit intohyperium:masterfrom
ttkgames:prep-v1alpha-support

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
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