middleware

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORSHandler

func CORSHandler(nextHandler http.Handler) http.Handler

func RequestIDFromContext

func RequestIDFromContext(ctx context.Context) string

func TracingHandler

func TracingHandler(nextHandler http.Handler) http.Handler

Types

type ContextLogger added in v0.3.2

type ContextLogger struct {
	// contains filtered or unexported fields
}

func NewContextLogger added in v0.3.2

func NewContextLogger(logger *logrus.Logger, next http.Handler) *ContextLogger

func (*ContextLogger) ServeHTTP added in v0.3.2

func (handler *ContextLogger) ServeHTTP(responseWriter http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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