Documentation
¶
Index ¶
- Variables
- type Response
- func ClientErrResponse(msg_optional ...string) *Response
- func NewResponse(statusCode int, body map[string]interface{}) *Response
- func OkJsonReponse(body map[string]interface{}) *Response
- func OkMsgResponse(msg_optional ...string) *Response
- func OkResponse() *Response
- func ServerErrResponse(msg_optional ...string) *Response
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoUserArg = errors.New("username argument missing") ErrNoUser = errors.New("username does not exist") )
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { StatusCode int `json:"statusCode,omitempty"` Headers map[string]string `json:"headers,omitempty"` Body map[string]interface{} `json:"body,omitempty"` }
func ClientErrResponse ¶
only first provided arg will be used. (OPTIONAL)
func NewResponse ¶
func OkJsonReponse ¶
func OkMsgResponse ¶
only first provided arg will be used. (OPTIONAL)
func OkResponse ¶
func OkResponse() *Response
func ServerErrResponse ¶
only first provided arg will be used. (OPTIONAL)
Click to show internal directories.
Click to hide internal directories.