Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { Data interface{} `json:"data,omitempty"` Message string `json:"message"` Code int `json:"code"` }
func BadResponse ¶
func ErrorResponse ¶
func ForbiddenResponse ¶
func ServerErrorResponse ¶
func SuccessResponse ¶
func SuccessResponse(data interface{}) *Response
Click to show internal directories.
Click to hide internal directories.