repository

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QuestionsRepository

type QuestionsRepository interface {
	GetRandomQuestions(ctx context.Context, level questionsModel.QuestionSetLevel, count int64) ([]questionsModel.Question, error)
	SaveQuestionSet(ctx context.Context, questionSet questionsModel.QuestionSet) error
	GetQuestionSet(ctx context.Context, questionSetID string) (*questionsModel.QuestionSet, error)
	SaveLevelSet(ctx context.Context, level questionsModel.QuestionSetLevel, questions []questionsModel.Question) error
	IsSeeded(ctx context.Context) bool
	MarkAsSeeded(ctx context.Context) error
}

func New

func New(address string, logger *slog.Logger) QuestionsRepository

Jump to

Keyboard shortcuts

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