http

package
v1.0.148 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GrpcOrDefaultHandler added in v0.0.8

func GrpcOrDefaultHandler(grpcServer *grpc.Server, defaultHandler http.Handler) http.Handler

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.

Jump to

Keyboard shortcuts

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