12 lines
249 B
Go
12 lines
249 B
Go
package services
|
|
|
|
type periodicTask interface {
|
|
Run(i *Instance)
|
|
}
|
|
|
|
var periodicTasks []periodicTask
|
|
|
|
func init() {
|
|
periodicTasks = append(periodicTasks, &collectStatsTask{}, &checkSwarmStatusTask{}, &checkUsedPortsTask{}, &broadcastInfoTask{})
|
|
}
|