Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidPeriod indicates that the rate specified for the task is not // valid. ErrInvalidPeriod = errors.New("invalid period") )
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface {
Log(vals ...interface{}) error
}
Logger defines the log interface used by the Scheduler.
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler is responsible for scheduling and executing the maintenance tasks.
func NewScheduler ¶
NewScheduler creates a new maintenance scheduler with given tasks.
Click to show internal directories.
Click to hide internal directories.