Documentation ¶
Overview ¶
Package proxy provides server and codec for proxying gRPC requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matcher ¶ added in v0.2.0
type Matcher interface { MatchMetadata(string, metadata.MD) discovery.Matches Upstreams() []discovery.Upstream }
Matcher matches the request URI and incoming metadata to the registered rules.
type Option ¶
type Option func(*Server)
Option is a functional option for the server.
func WithGRPCServerOptions ¶
func WithGRPCServerOptions(opts ...grpc.ServerOption) Option
WithGRPCServerOptions sets the gRPC server options.
func WithReflection ¶ added in v0.3.0
func WithReflection() Option
WithReflection enables the gRPC server reflection merger.
func WithSignature ¶ added in v0.3.0
func WithSignature() Option
WithSignature enables the gRPC server signature metadata.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a gRPC server.
type ServerStream ¶ added in v0.2.0
type ServerStream grpc.ServerStream
ServerStream is a gRPC server stream.
Directories ¶
Path | Synopsis |
---|---|
Package middleware contains middlewares for gRPC unknown handlers.
|
Package middleware contains middlewares for gRPC unknown handlers. |
Click to show internal directories.
Click to hide internal directories.