trace

package module
v0.0.0-...-24d6d9e Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2016 License: MIT Imports: 4 Imported by: 0

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)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Trace

func Trace() gin.HandlerFunc

Trace will gather information from the request and also add the trace methods to handlers

func TraceController

func TraceController(c *gin.Context)

TraceController returns the default trace requests page example handler: r.GET("/debug/requests", trace.TraceController)

Types

This section is empty.

Jump to

Keyboard shortcuts

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