model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const ChoiceCount = 3

Variables

This section is empty.

Functions

This section is empty.

Types

type Choice

type Choice struct {
	Text string `json:"text"`
}

type Question

type Question struct {
	Text      string              `json:"text"`
	CreatedAt string              `json:"createdAt" `
	Choices   [ChoiceCount]Choice `json:"choices"`
}

type QuestionList

type QuestionList []Question

type Taker

type Taker struct {
	Login     string `json:"login" csv:"login"`
	Password  string `json:"password" csv:"password"`
	Title     string `json:"title" csv:"title"`
	LastName  string `json:"lastname" csv:"lastname"`
	FirstName string `json:"firstname" csv:"firstname"`
	Gender    string `json:"gender" csv:"gender"`
	Email     string `json:"email" csv:"email"`
	Picture   string `json:"picture" csv:"picture"`
	Address   string `json:"address" csv:"address"`
}

type TakerList

type TakerList []Taker

Jump to

Keyboard shortcuts

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