render

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequest

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

func BadRequestf

func BadRequestf(c *gin.Context, format string, a ...interface{})

func ErrorStatus

func ErrorStatus(c *gin.Context, err error, status int)

func Forbidden

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

func Forbiddenf

func Forbiddenf(c *gin.Context, format string, a ...interface{})

func InternalError

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

func InternalErrorf

func InternalErrorf(c *gin.Context, format string, a ...interface{})

func JSON

func JSON(c *gin.Context, v interface{}, status int)

func NotFound

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

func NotFoundf

func NotFoundf(c *gin.Context, format string, a ...interface{})

func OK

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

func Unauthorized

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

func Unauthorizedf

func Unauthorizedf(c *gin.Context, format string, a ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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