middleware

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2019 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BugsnagMiddleware

func BugsnagMiddleware(router http.Handler, config BugsnagConfig) http.Handler

BugsnagMiddleware configures and wraps bugsnag handler around the router

func GetNewRelicApp

func GetNewRelicApp(config NewrelicConfig) (newrelic.Application, error)

GetNewRelicApp creates and returns new relic app

func NewRelicMiddleware

func NewRelicMiddleware(handler httprouter.Handle, path string, config NewrelicConfig) httprouter.Handle

NewRelicMiddleware creates newrelic app and starts transaction

Types

type BugsnagConfig

type BugsnagConfig struct {
	APIKey              string
	ReleaseStage        string
	AppType             string
	AppVersion          string
	ProjectPackages     []string
	NotifyReleaseStages []string
	ParamsFilters       []string
	PanicHandler        func()
}

BugsnagConfig bugsnag config

type MiddlewareConfig

type MiddlewareConfig struct {
	Bugsnag  BugsnagConfig
	Newrelic NewrelicConfig
}

MiddlewareConfig middleware config

type NewrelicConfig

type NewrelicConfig struct {
	AppName string
	License string
}

NewrelicConfig newrelic config

Jump to

Keyboard shortcuts

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