Documentation ¶
Index ¶
- func RespondWithError(w http.ResponseWriter, status int)
- func RespondWithErrorWithMessage(w http.ResponseWriter, status int, message string)
- func Response(w http.ResponseWriter, status int)
- func ResponseJSON(w http.ResponseWriter, status int, data interface{})
- func ValidateUser(user models.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondWithError ¶
func RespondWithError(w http.ResponseWriter, status int)
func RespondWithErrorWithMessage ¶
func RespondWithErrorWithMessage(w http.ResponseWriter, status int, message string)
func Response ¶
func Response(w http.ResponseWriter, status int)
func ResponseJSON ¶
func ResponseJSON(w http.ResponseWriter, status int, data interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.