16 lines
457 B
Go
16 lines
457 B
Go
package store
|
|
|
|
import (
|
|
"git.andreafazzi.eu/andrea/probo/client"
|
|
"git.andreafazzi.eu/andrea/probo/models"
|
|
)
|
|
|
|
type ProboCollectorStore interface {
|
|
ReadAllQuizzes() ([]*models.Quiz, error)
|
|
|
|
ReadQuizByHash(hash string) (*models.Quiz, error)
|
|
|
|
CreateQuiz(r *client.CreateUpdateQuizRequest) (*models.Quiz, error)
|
|
UpdateQuiz(r *client.CreateUpdateQuizRequest, id string) (*models.Quiz, error)
|
|
DeleteQuiz(r *client.DeleteQuizRequest) (*models.Quiz, error)
|
|
}
|