Documentation ¶
Index ¶
- type TaskRepository
- func (_m TaskRepository) Answer(task domain.Task) error
- func (_m TaskRepository) Create(vocabulary domain.Vocabulary, peerId int64) (*domain.Task, error)
- func (_m TaskRepository) DeleteLast(peerId int64) error
- func (_m TaskRepository) GetById(taskId int64) (domain.Task, error)
- func (_m TaskRepository) GetLast(peerId int64) (domain.Task, error)
- func (_m TaskRepository) GetTodayTasks(topicId int64, peerId int) (int, error)
- type VocabularyRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskRepository ¶
TaskRepository is an autogenerated mock type for the TaskRepository type
func (TaskRepository) Answer ¶
func (_m TaskRepository) Answer(task domain.Task) error
Answer provides a mock function with given fields: task
func (TaskRepository) Create ¶
func (_m TaskRepository) Create(vocabulary domain.Vocabulary, peerId int64) (*domain.Task, error)
Create provides a mock function with given fields: vocabulary, peerId
func (TaskRepository) DeleteLast ¶
func (_m TaskRepository) DeleteLast(peerId int64) error
DeleteLast provides a mock function with given fields: peerId
func (TaskRepository) GetById ¶
func (_m TaskRepository) GetById(taskId int64) (domain.Task, error)
GetById provides a mock function with given fields: taskId
func (TaskRepository) GetLast ¶
func (_m TaskRepository) GetLast(peerId int64) (domain.Task, error)
GetLast provides a mock function with given fields: peerId
func (TaskRepository) GetTodayTasks ¶
func (_m TaskRepository) GetTodayTasks(topicId int64, peerId int) (int, error)
GetTodayTasks provides a mock function with given fields: topicId, peerId
type VocabularyRepository ¶
VocabularyRepository is an autogenerated mock type for the VocabularyRepository type
func (VocabularyRepository) FindActual ¶
func (_m VocabularyRepository) FindActual(topicId int64, peerId int64, date time.Time) (domain.Vocabulary, error)
FindActual provides a mock function with given fields: topicId, peerId, date
func (VocabularyRepository) GetTotal ¶
func (_m VocabularyRepository) GetTotal(topicId int64) (int, error)
GetTotal provides a mock function with given fields: topicId
func (VocabularyRepository) IncrViews ¶
func (_m VocabularyRepository) IncrViews(_a0 domain.Vocabulary)
IncrViews provides a mock function with given fields: _a0