Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggingMiddleware ¶
LoggingMiddleware logs the URI, Method, and time of your request
Types ¶
type Handler ¶
type Handler struct { DB *db.DB Job processors.Job }
func (*Handler) CreateJob ¶
func (h *Handler) CreateJob(w http.ResponseWriter, r *http.Request)
CreateJob takes a createJobRequest and enqueues the job for processing.
func (*Handler) HealthHandler ¶
func (h *Handler) HealthHandler(w http.ResponseWriter, r *http.Request)
HealthHandler returns a 200 if the service is healthy and a 500 if it is not
Click to show internal directories.
Click to hide internal directories.