response

package
v0.0.0-...-c76da00 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequest

func BadRequest(c *gin.Context, data interface{}, msg string)

BadRequest 400

func Created

func Created(c *gin.Context, data interface{}, msg string)

Created 201

func Deleted

func Deleted(c *gin.Context)

Deleted 204

func Forbidden

func Forbidden(c *gin.Context, data interface{}, msg string)

Forbidden 403

func InternalServerError

func InternalServerError(c *gin.Context, data interface{}, msg string)

InternalServerError 500

func NoContent

func NoContent(c *gin.Context, data interface{}, msg string)

NoContent 204

func NonAuthoritativeInfo

func NonAuthoritativeInfo(c *gin.Context, data interface{}, msg string)

NonAuthoritativeInfo 203

func NotFound

func NotFound(c *gin.Context, data interface{}, msg string)

NotFound 404

func OK

func OK(c *gin.Context, data interface{}, msg string)

OK 200

func StatusCode

func StatusCode(c *gin.Context, statusCode int, data interface{}, msg string)

func Unauthorized

func Unauthorized(c *gin.Context, data interface{}, msg string)

Unauthorized 401

func UnprocessableEntity

func UnprocessableEntity(c *gin.Context, data interface{}, msg string)

UnprocessableEntity 422

Types

This section is empty.

Jump to

Keyboard shortcuts

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