Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApiResponse ¶
type ApiResponse struct { Meta *ResponseMeta `json:"meta"` Body json.RawMessage `json:"body"` }
func ErrResp ¶
func ErrResp(err error) *ApiResponse
func OkResp ¶
func OkResp(t string, body interface{}) *ApiResponse
func (*ApiResponse) Error ¶
func (r *ApiResponse) Error() error
type ResponseMeta ¶
Click to show internal directories.
Click to hide internal directories.