package
0.4.1
Repository: https://github.com/siderolabs/grpc-proxy.git
Documentation: pkg.go.dev

# Functions

Codec returns a proxying [encoding.Coder] with the default protobuf codec as parent.
CodecWithParent returns a proxying [encoding.Codec] with a user provided codec as parent.
NewFrame constructs a frame for raw codec.
RegisterService sets up a proxy handler for a particular gRPC service and method.
TransparentHandler returns a handler that attempts to proxy all requests that are not registered in the server.
WithMethodNames configures list of method names to proxy for non-transparent handler.
WithStreamedDetector configures a function to detect streamed methods.
WithStreamedMethodNames configures list of streamed method names.

# Constants

Mode constants.
Mode constants.

# Structs

ServerStreamWrapper wraps grpc.ServerStream and adds locking to the send path.
SingleBackend implements a simple wrapper around get connection function of one to one proxying.

# Interfaces

Backend wraps information about upstream connection.

# Type aliases

Mode specifies proxying mode: one2one (transparent) or one2many (aggregation, error wrapping).
Option configures gRPC proxy.
StreamDirector returns a list of Backend objects to forward the call to.
StreamedDetectorFunc reports is gRPC is doing streaming (only for one2many proxying).