model

package
v0.0.0-...-9fcd9d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Question

type Question struct {
	Type     string         `json:"type" bson:"type"`
	Question string         `json:"question" bson:"question"`
	Media    string         `json:"media" bson:"media"`
	Answers  map[int]string `json:"answers" bson:"answers"`
}

type Quiz

type Quiz struct {
	Id        string              `json:"id" bson:"id"`
	Owner     string              `json:"username" bson:"username"`
	Name      string              `json:"name" bson:"name"`
	Questions map[string]Question `json:"questions" bson:"questions"`
	Solutions map[string]int      `json:"solutions" bson:"solutions"`
}

type Result

type Result struct {
	Id       string         `json:"id" bson:"id"`
	Username string         `json:"username" bson:"username"`
	Date     time.Time      `json:"date" bson:"date"`
	Answers  map[string]int `json:"answers" bson:"answers"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL