func Worker() { goworker.Register("CreateStack", w.CreateStack()) goworker.Register("DeleteStack", w.DeleteStack()) if err := goworker.Work(); err != nil { fmt.Println("Error:", err) } }
func main() { goworker.Register("SampleAddJobClass", addWorker) if err := goworker.Work(); err != nil { fmt.Println("Error:", err) } }
func main() { var ( reviewer = reviewerFunc(lintReviewer) queue = newResqueEnqueuer("high") ) goworker.Register("GoReviewJob", newGoReviewJob(reviewer, queue)) if err := goworker.Work(); err != nil { log.Error(err) } }
func main() { if err := goworker.Work(); err != nil { fmt.Println("Error:", err) } }