util

package
v0.6.24 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRequest

func LogRequest(auditLogDto *AuditLoggerDTO)

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"`
}

type LoggingMiddleware

type LoggingMiddleware interface {
	LoggingMiddleware(next http.Handler) http.Handler
}

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.

Jump to

Keyboard shortcuts

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