middleware

package
v0.0.0-...-e9dc8b2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogWithContext

func LogWithContext(ctx context.Context) *log.Entry

LogWithContext is used as a helper for logging http request information

func Logger

func Logger(next http.Handler) http.Handler

Logger provides http middleware for logging additional information about the request

Types

type ContextKey

type ContextKey string
const ContextMSRequestID ContextKey = "xMsRequestId"
const ContextRemoteAddr ContextKey = "clientIP"
const ContextRequestID ContextKey = "requestID"
const ContextRequestURI ContextKey = "requestURI"

Jump to

Keyboard shortcuts

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