Documentation
¶
Overview ¶
Package helpers provides utility functions for gRPC servers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMuxedGRPCServer ¶
func NewMuxedGRPCServer(addr string, tlsConfig *tls.Config, grpcServer http.Handler, httpHandler http.Handler, timeout time.Duration) *http.Server
NewMuxedGRPCServer returns an http.Server that multiplexes connections between a gRPC server and an HTTP handler.
func TimeoutHandlerFunc ¶
TimeoutHandlerFunc returns an HTTP handler that times out after a duration. This is useful for muxed gRPC servers where http.Server cannot have a timeout when handling streaming, long running connections.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.