Documentation ¶
Index ¶
- type MockAuditRepository
- type MockFixitRepository
- func (m *MockFixitRepository) CreateFixit(fixit *mdl.Fixit) error
- func (m *MockFixitRepository) FindFixitByID(id int) (*mdl.Fixit, error)
- func (m *MockFixitRepository) FindFixits(status mdl.StatusType, vocabID int, duration *mdl.Duration, limit int) (*[]mdl.Fixit, error)
- func (m *MockFixitRepository) UpdateFixit(fixit *mdl.Fixit) error
- type MockVocabRepository
- func (m *MockVocabRepository) CreateVocab(vocab *mdl.Vocab) error
- func (m *MockVocabRepository) FindVocabByID(id int) (*mdl.Vocab, error)
- func (m *MockVocabRepository) FindVocabByLearningLang(learningLang string) (vocab *mdl.Vocab, err error)
- func (m *MockVocabRepository) FindVocabs(learningCode string, hasFirst bool, limit int) (*[]mdl.Vocab, error)
- func (m *MockVocabRepository) UpdateVocab(vocab *mdl.Vocab) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuditRepository ¶
type MockAuditRepository struct {
// contains filtered or unexported fields
}
func NewMockAuditRepository ¶
func NewMockAuditRepository() *MockAuditRepository
NewMockAuditRepository initializes and returns a new instance of MockAuditRepository.
func (*MockAuditRepository) CreateAudit ¶
func (m *MockAuditRepository) CreateAudit(audit *mdl.Audit) error
func (*MockAuditRepository) FindAuditByID ¶
func (m *MockAuditRepository) FindAuditByID(id int) (*mdl.Audit, error)
type MockFixitRepository ¶
type MockFixitRepository struct {
// contains filtered or unexported fields
}
func NewMockFixitRepository ¶
func NewMockFixitRepository() *MockFixitRepository
NewMockFixitRepository initializes and returns a new instance of MockFixitRepository.
func (*MockFixitRepository) CreateFixit ¶
func (m *MockFixitRepository) CreateFixit(fixit *mdl.Fixit) error
func (*MockFixitRepository) FindFixitByID ¶
func (m *MockFixitRepository) FindFixitByID(id int) (*mdl.Fixit, error)
func (*MockFixitRepository) FindFixits ¶
func (m *MockFixitRepository) FindFixits(status mdl.StatusType, vocabID int, duration *mdl.Duration, limit int) (*[]mdl.Fixit, error)
func (*MockFixitRepository) UpdateFixit ¶
func (m *MockFixitRepository) UpdateFixit(fixit *mdl.Fixit) error
type MockVocabRepository ¶
type MockVocabRepository struct {
// contains filtered or unexported fields
}
func NewMockVocabRepository ¶
func NewMockVocabRepository() *MockVocabRepository
NewMockVocabRepository initializes and returns a new instance of MockVocabRepository.
func (*MockVocabRepository) CreateVocab ¶
func (m *MockVocabRepository) CreateVocab(vocab *mdl.Vocab) error
func (*MockVocabRepository) FindVocabByID ¶
func (m *MockVocabRepository) FindVocabByID(id int) (*mdl.Vocab, error)
func (*MockVocabRepository) FindVocabByLearningLang ¶
func (m *MockVocabRepository) FindVocabByLearningLang(learningLang string) (vocab *mdl.Vocab, err error)
func (*MockVocabRepository) FindVocabs ¶
func (*MockVocabRepository) UpdateVocab ¶
func (m *MockVocabRepository) UpdateVocab(vocab *mdl.Vocab) error
Click to show internal directories.
Click to hide internal directories.