middleware

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptMediaTypeJSON added in v1.11.0

func AcceptMediaTypeJSON() negroni.HandlerFunc

AcceptMediaTypeJSON is a middleware to check content-type and accept value in HTTP header is application/json

func LogrusLog added in v1.5.0

func LogrusLog(name, reqID 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(reqID string) negroni.HandlerFunc

NewRelicInstrumentation used for add request id to new relic attribute

func RequestID

func RequestID(reqID string) negroni.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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