Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type HTTPResponse ¶
type HTTPResponse struct { Status int Error *ErrorResponse Content interface{} Compose bool // compose response with common structure RawContent bool // return raw Content }
func ErrorResp ¶
func ErrorResp(code string, msg string) HTTPResponse
func (HTTPResponse) GetContent ¶
func (r HTTPResponse) GetContent() interface{}
func (HTTPResponse) GetStatus ¶
func (r HTTPResponse) GetStatus() int
func (HTTPResponse) Raw ¶
func (r HTTPResponse) Raw() bool
Click to show internal directories.
Click to hide internal directories.