aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--service/app_runner.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/service/app_runner.go b/service/app_runner.go
index 2aecf52..99ae263 100644
--- a/service/app_runner.go
+++ b/service/app_runner.go
@@ -46,6 +46,12 @@ func (r *AppRunner) AddJob(f RunnerFunc) {
46 r.jobs = append(r.jobs, f) 46 r.jobs = append(r.jobs, f)
47} 47}
48 48
49func (r *AppRunner) AddJobs(jobs []RunnerFunc) {
50 for _, j := range jobs {
51 r.AddJob(j)
52 }
53}
54
49func (r *AppRunner) AddBackgroundJob(f RunnerFunc) { 55func (r *AppRunner) AddBackgroundJob(f RunnerFunc) {
50 r.backgroundJobs = append(r.backgroundJobs, f) 56 r.backgroundJobs = append(r.backgroundJobs, f)
51} 57}