Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
func NewInstance ¶
type Response ¶
type Response struct { Data interface{} `json:"data"` Errors []string `json:"errors"` ProcessTime float64 `json:"process_time"` // contains filtered or unexported fields }
func NewResponse ¶
func NewResponse() Response
func (*Response) WriteError ¶
func (r *Response) WriteError(w http.ResponseWriter, httpStatus int, errors []string)
func (*Response) WriteOK ¶
func (r *Response) WriteOK(w http.ResponseWriter, data interface{})
Click to show internal directories.
Click to hide internal directories.