Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarkdownToQuiz ¶
func QuizToMarkdown ¶
Types ¶
type AttributeList ¶
func (AttributeList) Get ¶
func (al AttributeList) Get(key string) string
func (AttributeList) MarshalCSV ¶
func (al AttributeList) MarshalCSV() (string, error)
func (AttributeList) String ¶
func (al AttributeList) String() string
func (*AttributeList) UnmarshalCSV ¶
func (al *AttributeList) UnmarshalCSV(csv string) error
type Collection ¶
type Collection struct { Meta Name string `json:"name"` Quizzes []*Quiz `json:"quizzes" gorm:"many2many:collection_quizzes"` }
func (*Collection) GetHash ¶
func (c *Collection) GetHash() string
func (*Collection) Marshal ¶
func (c *Collection) Marshal() ([]byte, error)
func (*Collection) String ¶
func (c *Collection) String() string
func (*Collection) Unmarshal ¶
func (c *Collection) Unmarshal(data []byte) error
type Exam ¶
type Exam struct { Meta Participant *Participant `json:"participant"` Quizzes []*Quiz `json:"quizzes"` }
func (*Exam) ToMarkdown ¶
type Group ¶
type Group struct { Meta Name string Participants []*Participant }
type Meta ¶
type Meta struct { ID string `json:"id" yaml:"id" gorm:"primaryKey"` Tags []string `json:"tags" yaml:"tags"` CreatedAt time.Time `json:"created_at" yaml:"created_at"` UpdatedAt time.Time `json:"updated_at" yaml:"updated_at"` UniqueIDFunc func() string `json:"-" yaml:"-"` }
func (*Meta) GetCreatedAt ¶
func (*Meta) GetUpdatedAt ¶
func (*Meta) SetCreatedAt ¶
func (*Meta) SetUpdatedAt ¶
type Participant ¶
type Participant struct { Meta Firstname string `json:"firstname" csv:"firstname"` Lastname string `json:"lastname" csv:"lastname"` Token string `json:"token" csv:"token"` Attributes AttributeList `json:"attributes" csv:"attributes"` }
func (*Participant) AttributesToSlice ¶
func (p *Participant) AttributesToSlice() []string
func (*Participant) GetHash ¶
func (p *Participant) GetHash() string
func (*Participant) Marshal ¶
func (p *Participant) Marshal() ([]byte, error)
func (*Participant) String ¶
func (p *Participant) String() string
func (*Participant) Unmarshal ¶
func (p *Participant) Unmarshal(data []byte) error
type ParticipantAnswer ¶
type Quiz ¶
type Response ¶
type Response struct { Meta SessionTitle string `json:"session_title"` Participant *Participant `json:"participant"` Answers []*ParticipantAnswer `json:"answers"` }
Click to show internal directories.
Click to hide internal directories.