Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetMethod2CliAtomic ¶
func TransparentHandler ¶
func TransparentHandler(director func(ctx context.Context, fullMethodName string) (grpc.ClientConnInterface, error), match func(ctx context.Context, req match.Request) (*match.Response, error)) grpc.StreamHandler
TransparentHandler returns a handler that attempts to proxy all requests that are not registered in the server. The indented use here is as a transparent proxy, where the server doesn't know about the services implemented by the backends. It should be used as a `grpc.UnknownServiceHandler`.
This can *only* be used if the `server` also uses grpcproxy.CodecForServer() ServerOption.
Types ¶
type StreamDirector ¶
type StreamDirector func(ctx context.Context, fullMethodName string) (context.Context, grpc.ClientConnInterface, func(), error)
func GetStreamDirector ¶
func GetStreamDirector() StreamDirector
Click to show internal directories.
Click to hide internal directories.