Documentation ¶
Index ¶
- func BadRequest(ctx *fiber.Ctx, message string) error
- func NotAuthorizedProblem(ctx *fiber.Ctx, message string) error
- func NotFound(ctx *fiber.Ctx, message string) error
- func NotImplemented(ctx *fiber.Ctx, message string) error
- func ServerErrorProblem(ctx *fiber.Ctx, message string) error
- func ValidationErrors(ctx *fiber.Ctx, message string, validationErrors any) error
- type ProblemDetail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func NotAuthorizedProblem ¶
func NotImplemented ¶
func ServerErrorProblem ¶
func ValidationErrors ¶
Types ¶
type ProblemDetail ¶
type ProblemDetail struct { Type string `json:"type"` Title string `json:"title"` Detail string `json:"detail"` Context any `json:"context"` }
func BadRequestProblemDetail ¶
func BadRequestProblemDetail(message string) ProblemDetail
func PaymentRequiredProblemDetail ¶
func PaymentRequiredProblemDetail(message string) ProblemDetail
func ServerErrorProblemDetail ¶
func ServerErrorProblemDetail(message string) ProblemDetail
Click to show internal directories.
Click to hide internal directories.