Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDeckIdNotExists is returned when not found DeckId in the Db ErrDeckIdNotExists = errors.New("Deck Id does not exists") // ErrCardIdNotExists is returned when not found Card Id in the Db ErrCardIdNotExists = errors.New("Card Id does not exists.") )
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { Update(r review.Review) (review.Due, error) Insert(r review.Review, boxId string) (review.Due, error) Due(deckId string, t time.Time) (review.Due, error) }
Handler interface abstracts the persistence of the updated Cards following a Review.
Implementations should make all methods atomic Implementation needs at the least a db backend and a srs algo.
Click to show internal directories.
Click to hide internal directories.