Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomizeValidationError ¶ added in v0.7.0
func LogRequest ¶
func LogRequest(auditLogDto *AuditLoggerDTO)
func SetupCorsOriginHeader ¶ added in v0.6.29
func SetupCorsOriginHeader(w *http.ResponseWriter)
Types ¶
type AuditLoggerDTO ¶
type AuditLoggerDTO struct { UrlPath string `json:"urlPath"` UserEmail string `json:"userEmail"` UpdatedOn time.Time `json:"updatedOn"` QueryParams string `json:"queryParams"` ApiResponseCode int `json:"apiResponseCode"` RequestPayload []byte `json:"requestPayload"` RequestMethod string `json:"requestMethod"` }
type LoggingMiddleware ¶
type LoggingMiddlewareImpl ¶
type LoggingMiddlewareImpl struct {
// contains filtered or unexported fields
}
func NewLoggingMiddlewareImpl ¶
func NewLoggingMiddlewareImpl(userService user.UserService) *LoggingMiddlewareImpl
func (LoggingMiddlewareImpl) LoggingMiddleware ¶
func (impl LoggingMiddlewareImpl) LoggingMiddleware(next http.Handler) http.Handler
LoggingMiddleware is a middleware function that logs the incoming request.
Click to show internal directories.
Click to hide internal directories.