handler

package
v0.0.0-...-238b541 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RespondCreated

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

RespondCreated -- Set response for create process

func RespondDeleted

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

RespondDeleted -- Set response for delete process

func RespondError

func RespondError(c *gin.Context, message interface{}, statusCode int)

RespondError -- Set response for error

func RespondFailValidation

func RespondFailValidation(c *gin.Context, message interface{})

RespondFailValidation -- Set response for fail validation

func RespondJSON

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

RespondJSON -- set response to json format

func RespondMethodNotAllowed

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

RespondMethodNotAllowed -- Set response method not allowed

func RespondNotFound

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

RespondNotFound -- Set response not found

func RespondRedirect

func RespondRedirect(c *gin.Context, url string)

func RespondUnauthorized

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

RespondUnauthorized -- Set response not authorized

func RespondUpdated

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

RespondUpdated -- Set response for update process

func SetStatusCode

func SetStatusCode(statCode int) int

SetStatusCode -- Set status code

Types

This section is empty.

Jump to

Keyboard shortcuts

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