Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCookieValue ¶
GetCookieValue is the easiest way to parse a cookie string in a non-HTTP request context.
Types ¶
type Mux ¶
type Mux struct { // Create empty handlers for gRPC and grpc-gateway (JSON) traffic. JSONGateway *runtime.ServeMux HTTPMux http.Handler GRPCServer *grpc.Server }
Mux allows sharing one port between gRPC and the corresponding JSON gateway via header-based multiplexing.
func New ¶
func New(unaryInterceptors []grpc.UnaryServerInterceptor, assets http.FileSystem, metricsHandler http.Handler, gatewayCfg *gatewayv1.GatewayOptions) (*Mux, error)
func (*Mux) EnableGRPCReflection ¶
func (m *Mux) EnableGRPCReflection()
func (*Mux) ServeHTTP ¶
func (m *Mux) ServeHTTP(w http.ResponseWriter, r *http.Request)
Adapted from https://github.com/grpc/grpc-go/blob/197c621/server.go#L760-L778.
Click to show internal directories.
Click to hide internal directories.