response

package
v0.0.0-...-9528f6d Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequest

func BadRequest(c *gin.Context, message string)

func Forbidden

func Forbidden(c *gin.Context)

func HandleEntError

func HandleEntError(c *gin.Context, err error)

HandleEntError handle Ent error

func HandleValidatorError

func HandleValidatorError(c *gin.Context, err error)

HandleValidatorError handle Validator error

func NotFound

func NotFound(c *gin.Context, message string)

func OK

func OK(c *gin.Context, obj interface{})

func ServerError

func ServerError(c *gin.Context)

func Unauthorized

func Unauthorized(c *gin.Context)

func UnprocessableEntity

func UnprocessableEntity(c *gin.Context, message string, errors map[string]string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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