Documentation
¶
Index ¶
- func AddQueryParams(parameters interface{}, query url.Values) error
- func DecodeQueryString(r *http.Request, obj interface{}) error
- func DecodeRequestBody(r *http.Request, obj interface{}) error
- func ModelMap(model interface{}) (map[string]interface{}, error)
- func RespondError(w http.ResponseWriter, statuscode int, err error)
- func RespondJson(w http.ResponseWriter, payload interface{})
- type Http
- type HttpI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddQueryParams ¶
func DecodeQueryString ¶
func DecodeRequestBody ¶
func RespondError ¶
func RespondError(w http.ResponseWriter, statuscode int, err error)
func RespondJson ¶
func RespondJson(w http.ResponseWriter, payload interface{})
Types ¶
Click to show internal directories.
Click to hide internal directories.