Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllErrorCode = []ErrorCode{ ErrorCodeUnauthenticated, ErrorCodeUnauthorized, ErrorCodeAlreadyExist, ErrorCodeInvalidArgument, ErrorCodeNotFound, ErrorCodeInternal, }
View Source
var AllQuizType = []QuizType{ QuizTypeFourChoices, }
View Source
var AllRole = []Role{ RoleUser, }
Functions ¶
This section is empty.
Types ¶
type CurrentUserProfile ¶
type ErrorCode ¶
type ErrorCode string
func (ErrorCode) MarshalGQL ¶
func (*ErrorCode) UnmarshalGQL ¶
type FourChoicesQuiz ¶
type FourChoicesQuiz struct { ID string `json:"id"` QuizType QuizType `json:"quizType"` Question string `json:"question"` Choices []*QuizChoice `json:"choices"` }
func (FourChoicesQuiz) IsQuiz ¶
func (FourChoicesQuiz) IsQuiz()
type FourChoicesQuizAnswer ¶
type FourChoicesQuizAnswer struct { Quiz Quiz `json:"quiz"` AnsweredPlayerID string `json:"answeredPlayerID"` CorrectChoiceID string `json:"correctChoiceID"` }
func (FourChoicesQuizAnswer) IsQuizAnswer ¶
func (FourChoicesQuizAnswer) IsQuizAnswer()
type Player ¶
type Player struct { ID string `json:"id"` UserID string `json:"userId"` UserProfile *UserProfile `json:"userProfile"` }
type QuizAnswer ¶
type QuizAnswer interface {
IsQuizAnswer()
}
type QuizChoice ¶
func (QuizChoice) IsNode ¶
func (QuizChoice) IsNode()
type QuizType ¶
type QuizType string
const (
QuizTypeFourChoices QuizType = "FourChoices"
)
func (QuizType) MarshalGQL ¶
func (*QuizType) UnmarshalGQL ¶
type Role ¶
type Role string
const (
RoleUser Role = "USER"
)
func (Role) MarshalGQL ¶
func (*Role) UnmarshalGQL ¶
type UpdatePlayerIDInput ¶
type UpdatePlayerIDInput struct {
PlayerID string `json:"playerId"`
}
type UserProfile ¶
type UserProfile struct { ID string `json:"id"` DisplayName string `json:"displayName"` ScreenImgURL *string `json:"screenImgUrl"` }
func (UserProfile) IsNode ¶
func (UserProfile) IsNode()
Click to show internal directories.
Click to hide internal directories.