middleware

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRequestContextLoggers

func NewRequestContextLoggers(
	svcLogger svc1log.Logger,
	evtLogger evt2log.Logger,
	auditLogger audit2log.Logger,
	metricLogger metric1log.Logger,
) wrouter.RequestHandlerMiddleware

NewRequestContextLoggers is request middleware that sets loggers that can be retrieved from a context on the request context.

func NewRequestExtractIDs

func NewRequestExtractIDs(
	svcLogger svc1log.Logger,
	trcLogger trc1log.Logger,
	tracerOptions []wtracing.TracerOption,
	idsExtractor extractor.IDsFromRequest,
) wrouter.RequestHandlerMiddleware

func NewRequestPanicRecovery

func NewRequestPanicRecovery() wrouter.RequestHandlerMiddleware

func NewRouteLogTraceSpan

func NewRouteLogTraceSpan() wrouter.RouteHandlerMiddleware

func NewRouteRequestLog

func NewRouteRequestLog(reqLogger req2log.Logger, baseParamPerms req2log.RequestParamPerms) wrouter.RouteHandlerMiddleware

Types

This section is empty.

Jump to

Keyboard shortcuts

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