-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: provide better public API, enforce proxying mode
Provide more clear public API with options, also enforce proxying mode with options (not by looking at number of backends). One2one and one2many have some differences: one2one is transparent and oen2many might inject additional metadata, wrap errors and responses, etc., so if client expects one2many format, it should get it even with one upstream. Also provide method to guess streamed methods via function so any policy can be implemented (inspecting grpc server description, looking at method name prefix/suffix, etc.) No functional changes, just shuffling code around. Signed-off-by: Andrey Smirnov <[email protected]>
- Loading branch information
Showing
10 changed files
with
440 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.