Documentation ¶
Index ¶
- type QuizDB
- type QuizRepo
- type Quizes
- type ResultRepo
- func (u ResultRepo) FindByUserNameAndId(userName string, id string, result *model.Result) bool
- func (u ResultRepo) Insert(Result *model.Result) error
- func (u ResultRepo) Remove(userName string, id string) error
- func (u ResultRepo) Update(userName string, id string, t time.Time, answers map[string]int) error
- type Results
- type ResultsDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QuizRepo ¶
type QuizRepo struct {
// contains filtered or unexported fields
}
func NewQuizRepo ¶
func NewQuizRepo(db *mgo.Collection) QuizRepo
type Quizes ¶
type Quizes struct {
// contains filtered or unexported fields
}
func NewQuizes ¶
func NewQuizes(sessionManager sessionmanager.SessionManager, db QuizDB) Quizes
type ResultRepo ¶
type ResultRepo struct {
// contains filtered or unexported fields
}
func NewResultsRepo ¶
func NewResultsRepo(db *mgo.Collection) ResultRepo
func (ResultRepo) FindByUserNameAndId ¶
type Results ¶
type Results struct {
// contains filtered or unexported fields
}
func NewResults ¶
func NewResults(sessionManager sessionmanager.SessionManager, db ResultsDB) Results
Source Files ¶
Click to show internal directories.
Click to hide internal directories.