Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseResponse ¶
type BaseResponse struct { Status int `json:"-"` Errors []RespError `json:"errors"` Data interface{} `json:"data"` }
func NewBaseResponse ¶
func NewBaseResponse() *BaseResponse
func (*BaseResponse) ParseError ¶
func (r *BaseResponse) ParseError(err error)
func (*BaseResponse) SetData ¶
func (r *BaseResponse) SetData(v interface{})
func (*BaseResponse) Write ¶
func (r *BaseResponse) Write(ctx context.Context, w http.ResponseWriter, log Logger)
Click to show internal directories.
Click to hide internal directories.