Documentation ¶
Index ¶
- func GetID(r *http.Request, paramName string) (_ int, extErr exterrors.ExtError)
- func GetSizeAndPage(urlQuery url.Values) (_, _ int, extErr exterrors.ExtError)
- func ProcessRequestBody(w http.ResponseWriter, r *http.Request, body interface{}) error
- func SendExtError(w http.ResponseWriter, extError exterrors.ExtError)
- func SendExtErrors(w http.ResponseWriter, httpCode int, httpErrors exterrors.ExtErrors)
- func SendRawResponse(w http.ResponseWriter, statusCode int, binBody []byte)
- func SendResponse(w http.ResponseWriter, statusCode int, respBody interface{})
- func UnmarshalRequestBody(r *http.Request, body interface{}) exterrors.ExtError
- func ValidateRequestBody(r *http.Request, body interface{}) exterrors.ExtErrors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSizeAndPage ¶
func ProcessRequestBody ¶
func ProcessRequestBody(w http.ResponseWriter, r *http.Request, body interface{}) error
func SendExtError ¶
func SendExtError(w http.ResponseWriter, extError exterrors.ExtError)
func SendExtErrors ¶
func SendExtErrors(w http.ResponseWriter, httpCode int, httpErrors exterrors.ExtErrors)
func SendRawResponse ¶
func SendRawResponse(w http.ResponseWriter, statusCode int, binBody []byte)
func SendResponse ¶
func SendResponse(w http.ResponseWriter, statusCode int, respBody interface{})
func UnmarshalRequestBody ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.