middleware

package
v0.0.0-...-261bb52 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//RequestIDHeaderKey is header key
	RequestIDHeaderKey = "X-Request-ID"
)

Variables

This section is empty.

Functions

func CORS

CORS is middleware to CORS

func Logger

Logger is middleware to record std log

func Recover

func Recover(fn httprouter.Handle) httprouter.Handle

Recover is middleware to recover panic error

func Tracer

Tracer is middleware for tracing HTTP Server

Types

type RequestIDContextKey

type RequestIDContextKey struct{}

RequestIDContextKey is context key

Jump to

Keyboard shortcuts

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