Discover Packages
github.com/techjanitor/gin-trace
package
module
Version:
v0.0.0-...-24d6d9e
Opens a new window with list of versions in this module.
Published: Mar 4, 2016
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
gin-trace
trace middleware for gin
import "github.com/techjanitor/gin-trace"
https://github.com/gin-gonic/gin
https://godoc.org/golang.org/x/net/trace
router := gin.New()
// Add the trace middleware to your router or group
router.Use(trace.Trace())
// Add the controller to view the default request handler
router.GET("/debug/requests", trace.TraceController)
Expand ▾
Collapse ▴
Documentation
¶
Trace will gather information from the request and also add the trace methods to handlers
TraceController returns the default trace requests page
example handler: r.GET("/debug/requests", trace.TraceController)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.