Documentation ¶
Overview ¶
Defines the Review struct for storing rows from the Review table.
Auto-tuning stuff (of spacing algorithm parameters).
Index ¶
- func BulkSaveReviews[T database.Querier](q T, reviews []Result, now time.Time) error
- func ScheduleReview[T database.Querier](q T, due time.Time, count int) ([]string, error)
- func ScheduleReviewNow[T database.Querier](q T, count int) ([]string, error)
- func ScheduleReviewNowWith[T database.Querier](q T, count int, pred func(item string) bool) ([]string, error)
- func UpdateReview[T database.Querier](q T, item string, correct bool) error
- func UpdateReviewAt[T database.Querier](q T, item string, correct bool, now time.Time) error
- func UpdateReviewAtTx(tx *sql.Tx, result Result, now time.Time) error
- type Result
- type Review
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BulkSaveReviews ¶
Saves reviews in bulk.
func ScheduleReview ¶
Returns items due for review, no more than count. Pass a negative count if you want to get all due items.
func ScheduleReviewNow ¶
Same as Schedule, but with some default args.
func ScheduleReviewNowWith ¶
func ScheduleReviewNowWith[T database.Querier](q T, count int, pred func(item string) bool) ([]string, error)
Same as ScheduleReviewNowWith, but takes a predicate argument. Only items that satisfy the predicate are included in the result.
func UpdateReviewAt ¶
Updates review status of item.
Types ¶
Click to show internal directories.
Click to hide internal directories.