util-go/time/scheduler/storage/storage.go
crusader 6b4beb77fb ing
2018-04-28 21:39:55 +09:00

19 lines
389 B
Go

package storage
type TaskAttribute struct {
Hash string
Name string
LastRun string
NextRun string
Duration string
IsRecurring string
Params string
}
// TaskStorage is the interface to implement when adding custom task storage.
type TaskStorage interface {
Add(*TaskAttribute) error
Fetch() ([]*TaskAttribute, error)
Remove(*TaskAttribute) error
}