gorelic

package module
v0.0.0-...-11571ae Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2017 License: BSD-3-Clause Imports: 5 Imported by: 3

README

GoRelic

NewRelic middleware for gin-gonic framework.

Usage

import(
	"github.com/gin-gonic/gin"
	"github.com/brandfolder/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