Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GrpcOrDefaultHandler ¶ added in v0.0.8
GrpcOrDefaultHandler returns an http.Handler that delegates to grpcServer on incoming gRPC connections or otherHandler otherwise. Copied from cockroachdb.
func WrapGinF ¶
func WrapGinF(f gin.HandlerFunc) http.HandlerFunc
WrapGinF is a helper function for wrapping gin.HandlerFunc Returns a http middleware
func WrapHTTPRouterF ¶
func WrapHTTPRouterF(f httprouter.Handle) http.HandlerFunc
WrapHTTPRouterF is a helper function for wrapping httprouter.Handle Returns a http middleware
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.