Documentation ¶
Index ¶
- func RespondWith(w http.ResponseWriter, httpStatusCode int, respModel interface{})
- func RespondWithBadRequestError(w http.ResponseWriter, errMsg string)
- func RespondWithError(w http.ResponseWriter, httpErrCode int, errMsg string)
- func RespondWithErrorJSON(w http.ResponseWriter, httpErrCode int, respModel interface{})
- func RespondWithNotFoundError(w http.ResponseWriter, errMsg string)
- func RespondWithSuccessOK(w http.ResponseWriter, respModel interface{})
- type StandardErrorRespModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondWith ¶
func RespondWith(w http.ResponseWriter, httpStatusCode int, respModel interface{})
RespondWith ...
func RespondWithBadRequestError ¶
func RespondWithBadRequestError(w http.ResponseWriter, errMsg string)
RespondWithBadRequestError ...
func RespondWithError ¶
func RespondWithError(w http.ResponseWriter, httpErrCode int, errMsg string)
RespondWithError ...
func RespondWithErrorJSON ¶
func RespondWithErrorJSON(w http.ResponseWriter, httpErrCode int, respModel interface{})
RespondWithErrorJSON ...
func RespondWithNotFoundError ¶
func RespondWithNotFoundError(w http.ResponseWriter, errMsg string)
RespondWithNotFoundError ...
func RespondWithSuccessOK ¶
func RespondWithSuccessOK(w http.ResponseWriter, respModel interface{})
RespondWithSuccessOK ...
Types ¶
type StandardErrorRespModel ¶
type StandardErrorRespModel struct {
ErrorMessage string `json:"error"`
}
StandardErrorRespModel ...
Click to show internal directories.
Click to hide internal directories.