Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleFindError ¶
func HandleFindError(w http.ResponseWriter, err error)
HandleFindError responds when error occurs in FindByID methods
func RespondWithAppError ¶
func RespondWithAppError(w http.ResponseWriter, handlerError error, message string, statusCode int)
func RespondWithJSON ¶
func RespondWithJSON(w http.ResponseWriter, modelObj interface{}, statusCode int)
utility marshaling object into json, setting headers, status code
func SetHeaders ¶
func SetHeaders(w http.ResponseWriter, statusCode int)
utility write headers method
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.