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