http

package
v0.5.0-rc23 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 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 interface{})

BadRequest renders a HTTP 400 bad request response

func JsonOK

func JsonOK(c *gin.Context, data interface{})

JsonOK renders a successful response

func NotFound

func NotFound(c *gin.Context, err interface{})

NotFound renders a HTTP 404 not found response

func ServerError

func ServerError(c *gin.Context, err interface{})

ServerError renders a HTTP 500 error response

func ShouldReturn

func ShouldReturn(c *gin.Context, err error) bool

ShouldReturn is a shorthand method for handling resource errors

Types

This section is empty.

Jump to

Keyboard shortcuts

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