Documentation ¶
Index ¶
Constants ¶
View Source
const ( InitialEase float32 = 2.5 MaxEase float32 = 2.5 MinEase float32 = 1.3 )
Ease factor options
View Source
const ( InitialInterval = fb.Interval(24 * fb.Hour) SecondInterval = fb.Interval(6 * fb.Day) )
Interval options
View Source
const (
LapseInterval = fb.Interval(10 * fb.Minute)
)
Lapse options
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnswerQuality ¶
type AnswerQuality int
AnswerQuality represents the SM-2 quality of the answer. See here: https://www.supermemo.com/english/ol/sm2.htm
const ( // Complete Blackout AnswerBlackout AnswerQuality = iota // incorrect response; the correct one remembered AnswerIncorrectRemembered // incorrect response; where the correct one seemed easy to recall AnswerIncorrectEasy // correct response recalled with serious difficulty AnswerCorrectDifficult // correct response after a hesitation AnswerCorrect // perfect response AnswerPerfect )
Answer qualities are borrowed from the SM2 algorithm.
type CardView ¶
type CardView interface { DocID() string Buttons(face int) (studyview.ButtonMap, error) Body(ctx context.Context, face int) (body string, err error) Action(ctx context.Context, face *int, startTime time.Time, query interface{}) (done bool, err error) }
CardView represents a view of a card or card-like object.
Directories ¶
Path | Synopsis |
---|---|
controllers
|
|
anki
Package anki is the model handler for the Anki models.
|
Package anki is the model handler for the Anki models. |
done
Package done provides a single card to display when there is nothing left to study.
|
Package done provides a single card to display when there is nothing left to study. |
mustsync
Package mustsync provides a single card to display when the client has not yet been synced with the server.
|
Package mustsync provides a single card to display when the client has not yet been synced with the server. |
Package iframes provides abstractions for inter-iframe communication
|
Package iframes provides abstractions for inter-iframe communication |
Click to show internal directories.
Click to hide internal directories.