grpc-proxy icon indicating copy to clipboard operation
grpc-proxy copied to clipboard

feat: support of grpc.ClientConnInterface allows custom streams

Open DenKoren opened this issue 2 years ago • 0 comments

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

DenKoren avatar Nov 21 '23 08:11 DenKoren