Documentation ¶
Index ¶
- func GetQuestionsAnswers(c *gin.Context, dbState DBState)
- func HomePage(c *gin.Context)
- func JoinLobby(c *gin.Context, dbState DBState)
- func ParseResponse(c *gin.Context, dbState DBState)
- func RegisterUser(c *gin.Context, dbState DBState)
- func RetrieveLeadboard(c *gin.Context, dbState DBState)
- func RetrieveNextSession(c *gin.Context)
- func UserInfo(c *gin.Context, dbState DBState)
- type Answer
- type DBState
- type JWTClaims
- type LobbyRequest
- type NextSession
- type Question
- type ResultRequest
- type ResultResponse
- type UserLogin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetQuestionsAnswers ¶
func ParseResponse ¶
func RegisterUser ¶
func RetrieveLeadboard ¶
func RetrieveNextSession ¶
Types ¶
type JWTClaims ¶
type JWTClaims struct { Id int `json:"id"` Nick string `json:"nick"` Image string `json:"image"` QRcode string `json:"qr_code"` jwt.StandardClaims }
func ParseJWTToken ¶
type LobbyRequest ¶
type NextSession ¶
type Question ¶
type Question struct { QuestionID int `json:"question-id"` QuestionText string `json:"question-text"` CorrectAnswer int `json:"correct-answer-id"` Points int `json:"point"` Answers []Answer `json:"answers"` }
func ConvertQuestionDBToQuestion ¶
func ConvertQuestionDBToQuestion(qdb []database.QuestionDB) []Question
type ResultRequest ¶
type ResultRequest struct {
JWT string `json:"token"`
}
type ResultResponse ¶
Click to show internal directories.
Click to hide internal directories.