func (s *Server) UnpausePipeline(pipelineDB db.PipelineDB) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { err := pipelineDB.Unpause() if err != nil { w.WriteHeader(http.StatusInternalServerError) return } w.WriteHeader(http.StatusOK) }) }
func (s *Server) UnpausePipeline(pipelineDB db.PipelineDB) http.Handler { logger := s.logger.Session("unpause-pipeline") return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { err := pipelineDB.Unpause() if err != nil { logger.Error("failed-to-unpause-pipeline", err) w.WriteHeader(http.StatusInternalServerError) return } w.WriteHeader(http.StatusOK) }) }