grpcutil

package
v0.0.0-...-d9a8df2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsClosedConnection

func IsClosedConnection(err error) bool

IsClosedConnection returns true if err is an error produced by gRPC on closed connections.

func IsGRPCRequest

func IsGRPCRequest(r *http.Request) bool

IsGRPCRequest returns true if r came from a grpc client.

Its logic is a partial recreation of gRPC's internal checks, see https://github.com/grpc/grpc-go/blob/01de3de/transport/handler_server.go#L61:L69

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL