Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comparator ¶
type Comparator interface {
Compare(vocabulary *Vocabulary, msg string) bool
}
type Masker ¶
type Masker interface {
Mask(vocabulary *Vocabulary) string
}
type Task ¶
type TaskProgress ¶
type TaskProgressRepository ¶
type TaskRepository ¶
type TopicRepository ¶
type Vocabulary ¶
type Vocabulary struct { Id int64 `sql:"vocabulary_id,pk"` Attachment string `sql:"attachment"` Views int64 `sql:"views"` Answer string `sql:"answer"` Example string `sql:"example"` Question string `sql:"question"` TopicId int64 `sql:"topic_id"` Topic *Topic `pg:"rel:belongs-to"` }
func (*Vocabulary) GetId ¶
func (v *Vocabulary) GetId() string
type VocabularyRepository ¶
type VocabularyRepository interface { FindActual(topicId int64, peerId int64, date time.Time) (Vocabulary, error) IncrViews(Vocabulary) GetTotal(topicId int64) (int, error) }
Click to show internal directories.
Click to hide internal directories.