Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Class ¶
type Class struct { ID uuid.UUID `db:"id" json:"id" gorm:"primary_key"` Name string `db:"name" json:"name"` }
type LocalIdentity ¶
type LocalIdentity struct { UserID uuid.UUID `db:"user_id" json:"user_id"` Password string `db:"password" json:"password"` }
type MultipleChoiceAnswer ¶
type MultipleChoiceQuestion ¶
type MultipleChoiceQuestion struct { ID uuid.UUID `db:"id" json:"id"` ClassID uuid.UUID `db:"class_id" json:"class_id"` AuthorID uuid.UUID `db:"author_id" json:"author_id"` Question string `db:"question" json:"question"` PartialCredit bool `db:"partial_credit" json:"partial_credit"` Timestamp time.Time `db:"timestamp" json:"timestamp"` UnitID uuid.UUID `db:"unit_id" json:"unit_id"` }
type MultipleChoiceResponse ¶
type MultipleChoiceResponse struct { ID uuid.UUID `db:"id" json:"id"` QuestionID uuid.UUID `db:"question_id" json:"question_id"` AuthorID uuid.UUID `db:"author_id" json:"author_id"` ResponseID uuid.UUID `db:"response_id" json:"response_id"` }
type Profile ¶
type Profile struct { ID uuid.UUID `db:"id" json:"id"` UserID uuid.UUID `db:"user_id" json:"user_id"` ClassID uuid.UUID `db:"class_id" json:"class_id"` Role string `db:"role" json:"role"` }
type ShortAnswerQuestion ¶
type ShortAnswerQuestion struct { ID uuid.UUID `db:"id" json:"id"` ClassID uuid.UUID `db:"class_id" json:"class_id"` AuthorID uuid.UUID `db:"author_id" json:"author_id"` Prompt string `db:"prompt" json:"prompt"` MinimumLength int `db:"minimum_length" json:"minimum_length"` MaximumLength int `db:"maximum_length" json:"maximum_length"` UnitID uuid.UUID `db:"unit_id" json:"unit_id"` }
type ShortAnswerResponse ¶
type ShortAnswerResponse struct { ID uuid.UUID `db:"id" json:"id"` QuestionID uuid.UUID `db:"question_id" json:"question_id"` AuthorID uuid.UUID `db:"author_id" json:"author_id"` Response string `db:"response" json:"response"` }
type TrueFalseQuestion ¶
type TrueFalseQuestion struct { ID uuid.UUID `db:"id" json:"id"` ClassID uuid.UUID `db:"class_id" json:"class_id"` AuthorID uuid.UUID `db:"author_id" json:"author_id"` Question string `db:"question" json:"question"` CorrectAnswer bool `db:"correct_answer" json:"correct_answer"` UnitID uuid.UUID `db:"unit_id" json:"unit_id"` }
type TrueFalseResponse ¶
type TrueFalseResponse struct { ID uuid.UUID `db:"id" json:"id"` QuestionID uuid.UUID `db:"question_id" json:"question_id"` AuthorID uuid.UUID `db:"author_id" json:"author_id"` Response bool `db:"response" json:"response"` }
Click to show internal directories.
Click to hide internal directories.