gorelic

package module
v0.0.0-...-fc3f981 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2015 License: BSD-3-Clause Imports: 5 Imported by: 0

README

GoRelic

NewRelic middleware for gin-gonic framework.

Usage

import(
	"github.com/go-go/gin"
	"github.com/go-go/gin-gorelic"
)

func main(){
	g := gin.Default()

	gorelic.InitNewrelicAgent("YOUR_NEWRELIC_LICENSE_KEY", "YOUR_APPLICATION_NAME", true)
	g.Use(gorelic.Handler)

	g.Run()
}

Authors

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(c *gin.Context)

Handler for the agent

func InitNewrelicAgent

func InitNewrelicAgent(license string, appname string, verbose bool) error

InitNewrelicAgent creates the new relic agent

Types

This section is empty.

Jump to

Keyboard shortcuts

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