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

refactor: provide better public API, enforce proxying mode #2

Merged
merged 1 commit into from
Nov 27, 2019

Conversation

smira
Copy link
Member

@smira smira commented Nov 26, 2019

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 smirnov.andrey@gmail.com

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 <smirnov.andrey@gmail.com>
@smira smira merged commit cc91c09 into siderolabs:master Nov 27, 2019
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

2 participants