model

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProtoQuestionSetLevelInvalid = errors.New("question set level is invalid")
	ErrProtoQuestionSetIDInvalid    = errors.New("question set id is invalid")

	ErrProtoQuestionTypeInvalid = errors.New("question type is invalid")
)

Functions

func ConvertProtoQuestionSet

func ConvertProtoQuestionSet(protoQuestionSet *questionsv1.QuestionSet) (*models.QuestionSet, error)

Converts protobuf's generated question set to internal model question set.

TODO: Add question difficulty to protobuf, currently missing

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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