Documentation
¶
Index ¶
- func GRPCHandlerFunc(grpcServer *grpc.Server, otherHandler http.Handler) http.Handler
- func IsClosedConnection(err error) bool
- func ListenAndServeGRPC(stopper *stop.Stopper, server *grpc.Server, addr net.Addr, config *tls.Config) (net.Listener, error)
- func NewContextWithStopper(base context.Context, stopper *stop.Stopper) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GRPCHandlerFunc ¶
GRPCHandlerFunc returns an http.Handler that delegates to grpcServer on incoming gRPC connections or otherHandler otherwise.
func IsClosedConnection ¶
IsClosedConnection returns true if err is an error produced by gRPC on closed connections.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.