Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response interface {
SetError(err error) Response
SetResponse(interface{}) Response
SetHeaders(map[string]string) Response
SetStatusCode(int) Response
AppendHeaders(map[string]string) Response
StatusCode() int
Body() interface{}
ErrorBody() interface{}
Error() error
Headers() map[string]string
GetResponseBody() interface{}
String() string
}
Response interface for response struct
func NewResponse ¶
NewResponse will create a new response instance
Click to show internal directories.
Click to hide internal directories.