Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChallengeImagesRepo ¶
type ChallengeImagesRepo interface { GetChallengeImages( number int, label string) (images [][]byte, answer string, err error) ScanForChallenges() error }
func NewChallengeImagesRepo ¶
func NewChallengeImagesRepo(db *gorm.DB, imageFolder string) (ChallengeImagesRepo, error)
type ChallengeQuestionsRepo ¶
type ChallengeQuestionsRepo interface { GetChallengeQuestions(number int, label string) ([]*QuestionChallenge, error) CreateChallenge(label string, question string, answer string) (*QuestionChallenge, error) DeleteChallenge(id uint) error }
func NewChallengeQuestionsRepo ¶
func NewChallengeQuestionsRepo(db *gorm.DB) (ChallengeQuestionsRepo, error)
type QuestionChallenge ¶
type SessionRepo ¶
type SessionRepo interface { CreateSession(uuid string, sessionType SessionType, answer string) error GetSession(uuid string) (*Session, error) DeleteSession(uuid string) error }
func NewSessionRepo ¶
func NewSessionRepo(db *gorm.DB) (SessionRepo, error)
type SessionType ¶
type SessionType int
var ( SessionType_Images SessionType = 0 SessionType_Alphanumeric SessionType = 1 SessionType_Questions SessionType = 2 )
Click to show internal directories.
Click to hide internal directories.