models

package
v0.0.0-...-7184739 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Answer

type Answer struct {
	ID         int      `json:"id"`
	Text       string   `json:"text"`
	Question   Question `json:"question"`
	QuestionID int      `json:"question_id"`
	Correct    bool     `json:"correct"`
}

type Category

type Category struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type Question

type Question struct {
	ID         int    `json:"id"`
	Text       string `json:"text"`
	Category   Category
	CategoryID int `json:"category_id"`
}

type Score

type Score struct {
	ID         int      `json:"id"`
	Question   Question `json:"question"`
	QuestionID int      `json:"question_id"`
	Hit        bool     `json:"hit"`
}

Jump to

Keyboard shortcuts

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