GetForSession now expects a *types.Session instead of a string

This commit is contained in:
Jonathan Leibiusky @xetorthio
2017-09-20 17:29:58 -03:00
parent 495219cdec
commit 2a261094ff
14 changed files with 106 additions and 36 deletions

2
api.go
View File

@@ -32,7 +32,7 @@ func main() {
task.NewCheckPorts(e, f),
task.NewCheckSwarmPorts(e, f),
task.NewCheckSwarmStatus(e, f),
task.NewCollectStats(e, f),
task.NewCollectStats(e, f, s),
}
sch, err := scheduler.NewScheduler(tasks, s, e, core)
if err != nil {