middleware

package
v1.8.11 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogrusLog added in v1.5.0

func LogrusLog(name string) negroni.HandlerFunc

LogrusLog middleware function for log HTTP request. combine with RequestID middleware first to add request id in log

func NewRelicHandler

func NewRelicHandler(app newrelic.Application) negroni.HandlerFunc

NewRelicHandler use new relic handler in middleware

func NewRelicInstrumentation

func NewRelicInstrumentation() negroni.HandlerFunc

NewRelicInstrumentation used for add request id to new relic attribute

func RequestID

func RequestID() negroni.HandlerFunc

RequestID middleware for get request id from client, if request id not found it will set to UUID

Types

This section is empty.

Jump to

Keyboard shortcuts

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