mwitkow / grpc-proxy

gRPC proxy is a Go reverse proxy that allows for rich routing of gRPC calls with minimum overhead.
Apache License 2.0
962 stars 210 forks source link

to make proxy.StreamDirector return an array of grpcClientConnection #71

Open abhishekkarigar opened 1 year ago

abhishekkarigar commented 1 year ago

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 commented 1 year ago

@mwitkow

vtolstov commented 1 year ago

why we need to return multiple connections at once ?