Versions in this module Expand all Collapse all v1 v1.0.0 Nov 26, 2024 Changes in this version + func EchoErrorResponse(c echo.Context, statusCode int, message, errorDetail string) error + func EchoSuccessResponse(c echo.Context, message string, data interface{}) error + func FiberErrorResponse(c *fiber.Ctx, statusCode int, message, errorDetail string) error + func FiberSuccessResponse(c *fiber.Ctx, message string, data interface{}) error + func GenerateErrorResponse(traceID, message, errorDetail string) core.StandardResponse + func GenerateSuccessResponse(traceID, message string, data interface{}) core.StandardResponse + func GenerateValidationErrorResponse(traceID, message string, fieldErrors map[string]interface{}) core.StandardResponse + func GetOrGenerateTraceID(headers http.Header) string + func GinErrorResponse(c *gin.Context, statusCode int, message, errorDetail string) + func GinSuccessResponse(c *gin.Context, message string, data interface{}) + func HTTPErrorResponse(w http.ResponseWriter, r *http.Request, statusCode int, ...) + func HTTPSuccessResponse(w http.ResponseWriter, r *http.Request, message string, data interface{}) + func LogRequest(method, path, traceID string, headers http.Header) + func LogResponse(method, path, traceID string, statusCode int, duration time.Duration) + func WriteJSONResponse(w http.ResponseWriter, statusCode int, response core.StandardResponse)