http

package
v0.0.0-...-f546535 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapGinF

func WrapGinF(f gin.HandlerFunc) http.HandlerFunc

WrapGinF is a helper function for wrapping gin.HandlerFunc Returns a http middleware

func WrapGrpcHandlers

func WrapGrpcHandlers(grpcServer *grpc.Server, otherHandler http.Handler) http.Handler

grpcHandlerFunc returns an http.Handler that delegates to grpcServer on incoming gRPC connections or otherHandler otherwise. Copied from cockroachdb.

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.

Jump to

Keyboard shortcuts

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