Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorHandler ¶
func ErrorHandler(err error, c echo.Context)
ErrorHandler generates an error message and saves it to the log The logger must be previously installed in the Echo context.
func GetRandString ¶
GetRandString create and return random alphanumeric strings fixed length.
func GetSingleError ¶
func GetSingleError(err error) validator.FieldError
GetSingleError returns the first error from the list of validation errors.
func GetTokenFromAuthHeader ¶
func JsonError ¶
func JsonError(ctx echo.Context, err *models.GeneralError) error
JsonError returns the JSON errors based on GeneralError model.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.