planner/sync/service/storage.go

23 lines
387 B
Go

package main
import (
"errors"
"time"
"go-mod.ewintr.nl/planner/item"
)
var (
ErrNotFound = errors.New("not found")
ErrNotARecurrer = errors.New("not a recurrer")
)
type Syncer interface {
Update(item item.Item, t time.Time) error
Updated(kind []item.Kind, t time.Time) ([]item.Item, error)
}
type Recurrer interface {
ShouldRecur(date item.Date) ([]item.Item, error)
}