Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApiResponse ¶
type ApiResponse struct { Code string `json:"code"` Message string `json:"message"` Errors []string `json:"errors"` Payload interface{} `json:"payload"` }
func Accepted ¶
func Accepted() *ApiResponse
func BuildResponse ¶
func BuildResponse(code string, message string, errors []string, payload interface{}) *ApiResponse
func Deleted ¶
func Deleted() *ApiResponse
func Success ¶
func Success(payload interface{}) *ApiResponse
func ValidationErrors ¶
func ValidationErrors(errs error) *ApiResponse
Click to show internal directories.
Click to hide internal directories.