response

package
v0.0.0-...-30d05de Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrorRespone

func NewErrorRespone(c echo.Context, err error, status int) error

Types

type EmptyBody

type EmptyBody struct{} // @Name EmptyBody

type ErrorResponse

type ErrorResponse struct {
	Message string               `json:"message"`
	Errors  []*ValidationMessage `json:"errors"`
	Status  int                  `json:"status"`

} // @Name ErrorResponse

func (*ErrorResponse) Error

func (e *ErrorResponse) Error() string

type ValidationMessage

type ValidationMessage struct {
	FailedField string `json:"failed_field"`
	Tag         string `json:"tag"`
	Message     string `json:"message"`

} // @Name ValidationMessage

Jump to

Keyboard shortcuts

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