Documentation ¶
Index ¶
- func BadRequestJson(c echo.Context, msg string) error
- func ErrorContains(err error, msg string) bool
- func InternalServerErrorJson(c echo.Context, msg string) error
- func NotFoundJson(c echo.Context, msg string) error
- func OkJson(c echo.Context, msg string) error
- func ParseInt32Param(c echo.Context, str string) (int32, error)
- func UnauthorizedJson(c echo.Context, msg string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequestJson ¶
c.JSON(400 echo.Map{"message": ...} shorthand
func ErrorContains ¶
func InternalServerErrorJson ¶
c.JSON(500 echo.Map{"error": ...} shorthand
func NotFoundJson ¶
c.JSON(404 echo.Map{"message": ...} shorthand
func ParseInt32Param ¶
func UnauthorizedJson ¶
c.JSON(401 echo.Map{"message": ...} shorthand
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.