Documentation ¶
Index ¶
Constants ¶
View Source
const ( SUCCESS = "SUCCESS" FAILED = "FAILED" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponseBody ¶
type ResponseBody struct { Status string `json:"status"` Result interface{} `json:"result"` Error *fiber.Error `json:"error,omitempty"` }
func BuildFailedResponse ¶
func BuildFailedResponse(err *fiber.Error) *ResponseBody
func BuildSuccessResponse ¶
func BuildSuccessResponse(response interface{}) *ResponseBody
Click to show internal directories.
Click to hide internal directories.