middlerware

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRPCMixHandler

func GRPCMixHandler(h http.Handler, grpc *grpc.Server, opts ...GRPCMixOption) http.Handler

GRPCMixHandler mix grpc and http in one Handler

func LoggingHandler

func LoggingHandler(h http.Handler) http.Handler

LoggingHandler write log over http

Types

type GRPCMixOption

type GRPCMixOption func(*GRPCMixOptions)

GRPCMixOption the Option of GRPC Mix

func GRPCMixWithServer

func GRPCMixWithServer(s *http2.Server) GRPCMixOption

type GRPCMixOptions

type GRPCMixOptions struct {
	// contains filtered or unexported fields
}

GRPCMixOptions the Options of GRPC Mix

Jump to

Keyboard shortcuts

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