Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPResponse ¶
type HTTPResponse struct { Code int `json:"status"` Success bool `json:"success"` Message string `json:"message"` Meta *Meta `json:"meta,omitempty"` Data interface{} `json:"data,omitempty"` Error interface{} `json:"error,omitempty"` }
HTTPResponse model
func NewHTTPResponse ¶
func NewHTTPResponse(code int, message string, params ...interface{}) *HTTPResponse
NewHTTPResponse constructor
func (*HTTPResponse) SetResponse ¶
func (h *HTTPResponse) SetResponse(c echo.Context) error
SetResponse method
Click to show internal directories.
Click to hide internal directories.