Documentation ¶
Index ¶
Constants ¶
View Source
const (
//RequestIDHeaderKey is header key
RequestIDHeaderKey = "X-Request-ID"
)
Variables ¶
This section is empty.
Functions ¶
func Logger ¶
func Logger(fn httprouter.Handle) httprouter.Handle
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 ¶
func Tracer(fn httprouter.Handle) httprouter.Handle
Tracer is middleware for tracing HTTP Server
Types ¶
Click to show internal directories.
Click to hide internal directories.