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

to make proxy.StreamDirector return an array of grpcClientConnection

Open abhishekkarigar opened this issue 1 year ago • 2 comments

currently the proxy.StreamDirector returns single grpc.ClientConn. what if i need to return multiple grpc ClientConn at once. this support needs to be added.

current supported:
type StreamDirector func(ctx context.Context, fullMethodName string) (context.Context, *grpc.ClientConn, error)

Required type StreamDirector func(ctx context.Context, fullMethodName string) (context.Context, []*grpc.ClientConn, error)

abhishekkarigar avatar Jul 13 '23 07:07 abhishekkarigar

@mwitkow

abhishekkarigar avatar Jul 13 '23 10:07 abhishekkarigar

why we need to return multiple connections at once ?

vtolstov avatar Aug 04 '23 13:08 vtolstov