Documentation ¶
Index ¶
- type ISurveyRepository
- type SurveyRepository
- func (r *SurveyRepository) CreateChoice(ctx context.Context, choice *models.Choice) error
- func (r *SurveyRepository) CreateQuestion(ctx context.Context, question *models.Question) error
- func (r *SurveyRepository) CreateSurvey(ctx context.Context, survey *models.Survey) error
- func (r *SurveyRepository) GetChoiceByTextAndQuestion(ctx context.Context, text string, questionID uint) (*models.Choice, error)
- func (r *SurveyRepository) UpdateChoice(ctx context.Context, choice *models.Choice) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISurveyRepository ¶
type ISurveyRepository interface { CreateSurvey(ctx context.Context, survey *models.Survey) error CreateQuestion(ctx context.Context, question *models.Question) error CreateChoice(ctx context.Context, choice *models.Choice) error UpdateChoice(ctx context.Context, choice *models.Choice) error GetChoiceByTextAndQuestion(ctx context.Context, text string, questionID uint) (*models.Choice, error) }
type SurveyRepository ¶
type SurveyRepository struct {
// contains filtered or unexported fields
}
func NewSurveyRepository ¶
func NewSurveyRepository(db db.DbService, logger logging.Logger) *SurveyRepository
func (*SurveyRepository) CreateChoice ¶
func (*SurveyRepository) CreateQuestion ¶
func (*SurveyRepository) CreateSurvey ¶
func (*SurveyRepository) GetChoiceByTextAndQuestion ¶
func (*SurveyRepository) UpdateChoice ¶
Click to show internal directories.
Click to hide internal directories.