Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResponseError ¶
func ResponseError(errMsg string, controller beego.Controller, response StatusMessageModelInterface, status, httpStatus int)
ResponseError responds the client with given status and message for error.
func ResponseIfError ¶
func ResponseIfError(err error, controller beego.Controller, response StatusMessageModelInterface, status, httpStatus int) bool
ResponseIfError responds the client with given status and message if error is encountered
Types ¶
type StatusMessageModelInterface ¶
StatusMessageModelInterface defines the StatusMessageModeInterface
Click to show internal directories.
Click to hide internal directories.