middleware

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdvancedResponseWriter

func AdvancedResponseWriter() func(next http.Handler) http.Handler

AdvancedResponseWriter middleware responsible to replace default response writer with a AdvancedResponseWriter

func CorrelationId

func CorrelationId() func(next http.Handler) http.Handler

CorrelationId middleware responsible to inject correlationId to request attributes correlationId is usually sent in the request header by the client (see constant.HeaderCorrelationId), but sometimes it doesn't exist, we will generate it automatically

func RequestContext

func RequestContext(props *config.AppProperties) func(next http.Handler) http.Handler

RequestContext middleware responsible to inject attributes to the request's context. This middleware should be run as soon as possible to create a uniform context for the request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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