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

feat: support of grpc.ClientConnInterface allows custom streams #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DenKoren
Copy link

@DenKoren DenKoren commented Nov 21, 2023

This makes StreamDirector function to accept grpc.ClientConnInterface instead of strict *grpc.ClientConn implementation. This allows to use custom connection implementations and stubs, like inprocess stream channeling without real network connection (https://pkg.go.dev/github.com/fullstorydev/grpchan/inprocgrpc)

I added the changed version interfaces to make this changes backwards-compatible.
Maybe it is woth of releasing another version of grpc-proxy package, that is not compatible with previous one on interface level.

If we just change StreamDirector declaration, all implementations of StreamDirector will become incompatible with the new interface :(

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.

1 participant