Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnswerRepo ¶
type AnswerRepo struct{}
AnswerRepo repo for Answer model
func (*AnswerRepo) Create ¶
func (r *AnswerRepo) Create(answer models.Answer)
Create create a new anser
type CategoryRepo ¶
type CategoryRepo struct{}
CategoryRepo repo for categories
func (*CategoryRepo) All ¶
func (r *CategoryRepo) All() []models.Category
All returns all categories
type QuestionRepo ¶
type QuestionRepo struct{}
QuestionRepo repository for Question
func (*QuestionRepo) Create ¶
func (r *QuestionRepo) Create(question models.Question) int
Create create a new question @returns models.Question recently created
Click to show internal directories.
Click to hide internal directories.