Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrResultNotObjectID = errors.New("result not object id")
View Source
var ErrUnexpectedClassNumber = errors.New("unexpected class number")
View Source
var ErrUnexpectedComplexityType = errors.New("unexpected complexity type")
View Source
var ErrUnexpectedRepeatType = errors.New("unexpected repeat type")
View Source
var ErrUnexpectedTaskType = errors.New("unexpected task type")
Functions ¶
This section is empty.
Types ¶
type ClassNumber ¶
type ClassNumber int64 // Класс 0 или [5, 11]
const ( ClassZero ClassNumber = 0 ClassFive ClassNumber = 5 ClassSix ClassNumber = 6 ClassSeven ClassNumber = 7 ClassEight ClassNumber = 8 ClassNine ClassNumber = 9 ClassTen ClassNumber = 10 ClassEleven ClassNumber = 11 )
func (ClassNumber) Readable ¶
func (n ClassNumber) Readable() string
func (ClassNumber) Validate ¶
func (n ClassNumber) Validate() error
type ClassNumbers ¶
type ClassNumbers []ClassNumber // Список классов
func (ClassNumbers) Readable ¶
func (ns ClassNumbers) Readable() string
type CollectionName ¶
type CollectionName string
const ( CollectionUsers CollectionName = "users" // Коллекция пользователей CollectionTests CollectionName = "tests" // Коллекция тестов CollectionTasks CollectionName = "tasks" // Коллекция задач CollectionPassages CollectionName = "passages" // Коллекция прохождений тестов )
func (CollectionName) String ¶
func (n CollectionName) String() string
type ComplexityType ¶
type ComplexityType string // Условная сложность
const ( ComplexityUndefined ComplexityType = "undefined" ComplexityEasy ComplexityType = "easy" // Легко ComplexityNormal ComplexityType = "normal" // Нормально ComplexityHard ComplexityType = "hard" // Сложно ComplexityVeryHard ComplexityType = "veryHard" // Очень сложно )
func (ComplexityType) Equal ¶
func (t ComplexityType) Equal(tt ComplexityType) bool
func (ComplexityType) Readable ¶
func (t ComplexityType) Readable() string
func (ComplexityType) String ¶
func (t ComplexityType) String() string
func (ComplexityType) Validate ¶
func (t ComplexityType) Validate() error
type DatabaseName ¶
type DatabaseName string
const ( DatabaseCore DatabaseName = "core" // Core база с данными о пользователях DatabaseSource DatabaseName = "source" // База с исходными материалами DatabasePassages DatabaseName = "passages" // База с прохождениями тестов )
func (DatabaseName) String ¶
func (n DatabaseName) String() string
type Duration ¶
const DurationsZero Duration = 0
func (Duration) RoundMillisecond ¶
func (Duration) RoundMinute ¶
func (Duration) RoundSecond ¶
type RepeatType ¶
type RepeatType string // Повторяемость
const ( Disposable RepeatType = "disposable" // Тест можно пройти только один раз Repeatable RepeatType = "repeatable" // Тест можно пройти повторно )
func (RepeatType) Equal ¶
func (t RepeatType) Equal(tt RepeatType) bool
func (RepeatType) Readable ¶
func (t RepeatType) Readable() string
func (RepeatType) String ¶
func (t RepeatType) String() string
func (RepeatType) Validate ¶
func (t RepeatType) Validate() error
Click to show internal directories.
Click to hide internal directories.