Skip to content

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