Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestLogger ¶
RequestLogger creates an http.Handler function with a default info logger
func RespondWithBody ¶
func RespondWithBody(w http.ResponseWriter, events subscribed.Events, httpCode int)
RespondWithBody sends http response with json body
func RespondWithErrorAndLog ¶
func RespondWithErrorAndLog(e error, w http.ResponseWriter)
RespondWithErrorAndLog logs error and sends http response with error json body
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.