20 lines
421 B
Go
20 lines
421 B
Go
package service
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type DataStore interface {
|
|
WriteJournalEntry(interface{}) error
|
|
GetJournalEntryForDate(time.Time) (interface{}, error)
|
|
|
|
WritePlanDay(interface{}) error
|
|
GetPlanDayForDate(time.Time) (interface{}, error)
|
|
|
|
WritePlanWeek(interface{}) error
|
|
GetPlanWeekForDate(time.Time) (interface{}, error)
|
|
|
|
WritePlanMonth(interface{}) error
|
|
GetPlanMonthForDate(time.Time) (interface{}, error)
|
|
}
|