repositories

package
v0.0.0-...-7066c7e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type MongoQuestionRepo

type MongoQuestionRepo struct {
	ClientOptions *options.ClientOptions
}

func ProvideMongoQuestionRepo

func ProvideMongoQuestionRepo(awsService *aws.AWSService) *MongoQuestionRepo

func (*MongoQuestionRepo) GetQuestion

func (repo *MongoQuestionRepo) GetQuestion(id string) *entity.Questions

func (*MongoQuestionRepo) SaveAnswers

func (repo *MongoQuestionRepo) SaveAnswers(answers *entity.Answers) error

func (*MongoQuestionRepo) SaveQuestions

func (repo *MongoQuestionRepo) SaveQuestions(questions *entity.Questions) error

type QuestionRepo

type QuestionRepo interface {
	GetQuestion(id string) *entity.Questions
	SaveQuestions(questions *entity.Questions) error
	SaveAnswers(answers *entity.Answers) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL