util

package
v0.0.0-...-47bf4fb Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequestJson

func BadRequestJson(c echo.Context, msg string) error

c.JSON(400 echo.Map{"message": ...} shorthand

func ErrorContains

func ErrorContains(err error, msg string) bool

func InternalServerErrorJson

func InternalServerErrorJson(c echo.Context, msg string) error

c.JSON(500 echo.Map{"error": ...} shorthand

func NotFoundJson

func NotFoundJson(c echo.Context, msg string) error

c.JSON(404 echo.Map{"message": ...} shorthand

func OkJson

func OkJson(c echo.Context, msg string) error

c.JSON(200 echo.Map{"message": ...} shorthand

func ParseInt32Param

func ParseInt32Param(c echo.Context, str string) (int32, error)

func UnauthorizedJson

func UnauthorizedJson(c echo.Context, msg string) error

c.JSON(401 echo.Map{"message": ...} shorthand

Types

This section is empty.

Jump to

Keyboard shortcuts

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