Documentation
¶
Overview ¶
Package router defines gRPC proxy helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend implements a backend (proxying one2one).
func NewBackend ¶
func NewBackend(name string, conn *grpc.ClientConn) *Backend
NewBackend builds new backend.
func (*Backend) AppendInfo ¶
AppendInfo is called to enhance response from the backend with additional data.
func (*Backend) BuildError ¶
BuildError is called to convert error from upstream into response field.
func (*Backend) GetConnection ¶
GetConnection returns a grpc connection to the backend.
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router wraps grpc-proxy StreamDirector.
Click to show internal directories.
Click to hide internal directories.