Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthCheckHandler ¶
func HealthCheckHandler(w http.ResponseWriter, r *http.Request)
HealthCheckHandler is a simple health check handler that responds with a 200 OK status.
func SendBadRequest ¶
func SendBadRequest(w http.ResponseWriter, msg string)
SendBadRequest sends a 400 Bad Request response with a custom message.
func SendInternalServerError ¶
func SendInternalServerError(w http.ResponseWriter)
SendInternalServerError sends a 500 Internal Server Error response.
func SendJsonResponse ¶
func SendJsonResponse(w http.ResponseWriter, payload interface{})
SendJsonResponse sends a JSON response with the given payload and sets the Content-Type header to application/json.
Types ¶
Click to show internal directories.
Click to hide internal directories.