# Functions
NewCorsMiddleware creates cors.Cors middleware and attaches it to the CorsMiddleware wrapper.
NewLoggingMiddleware is a wrapper of an SDK Logger.
NewDatabaseMiddleware is a constructor used to build a DatabaseMiddleware.
NewLoggingMiddleware is a wrapper of an SDK Logger.
NewMetricsMiddleware is a constructor used to build a MetricsMiddleware.
NewRecoveryMiddleware is a constructor used to build a RecoveryMiddleware.
NewRequestIDMiddleware creates a new RequestIDMiddleware.
# Constants
ForwardedForHeader is the 'X-Forwarded-For' (XFF) HTTP header field.
RequestIDHeader is the header key for carrying the RequestID.
# Structs
No description provided by the author
DatabaseLoggingMiddleware wraps an instantiated sdk.Logger that will be injected in the request context.
DatabaseMiddleware wraps an instantiated *gorm.DB that will be injected in the request context.
LoggingMiddleware wraps an instantiated sdk.Logger that will be injected in the request context.
MetricsMiddleware wraps an instantiated Metrics client that will be injected in the request context.
RecoveryMiddleware is a middleware that recovers from panics and logs them.
RequestIDMiddleware propagates or sets a request ID to the incoming request setting the value both in the HTTP header and in the request context.
# Interfaces
A Handlerer provides a http.Handler that responds to an HTTP request.