presenter

package
v0.0.0-...-775080a Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssessmentBreadcrumb

func AssessmentBreadcrumb(e edulab.Experiment, a edulab.Assessment, printer *message.Printer) template.HTML

func AssessmentType

func AssessmentType(printer *message.Printer, t edulab.AssessmentType) string

func AssessmentTypes

func AssessmentTypes(printer *message.Printer) [][]string

func AssessmentsBreadcrumb

func AssessmentsBreadcrumb(e edulab.Experiment, printer *message.Printer) template.HTML

func CohortBreadcrumb

func CohortBreadcrumb(e edulab.Experiment, printer *message.Printer) template.HTML

func ExperimentBreadcrumb

func ExperimentBreadcrumb(e edulab.Experiment, printer *message.Printer) template.HTML

func HomeBreadcrumbs

func HomeBreadcrumbs(printer *message.Printer) template.HTML

Types

type Assessment

type Assessment struct {
	edulab.Assessment
	Type      string     `json:"type"`
	Questions []Question `json:"questions"`
}

func NewAssessment

func NewAssessment(a edulab.Assessment, printer *message.Printer) Assessment

func NewAssessments

func NewAssessments(as []edulab.Assessment, printer *message.Printer) []Assessment
type Breadcrumb struct {
	URL  string
	Name string
}

type Demographic

type Demographic struct {
	edulab.Demographic
	Options []edulab.DemographicOption
}

func NewDemographics

func NewDemographics(ds []edulab.Demographic, dos []edulab.DemographicOption) []Demographic

func SortDemographics

func SortDemographics(ds []edulab.Demographic, do map[string]Demographic) []Demographic

type DemographicsResult

type DemographicsResult struct {
	Demographics []Demographic

	Categories [][]string
	Cohorts    []string
	Data       [][][]int // [category][cohort][count]
	// contains filtered or unexported fields
}

func NewDemographicsResult

func NewDemographicsResult(ds []edulab.Demographic, dos []edulab.DemographicOption,
	cohorts []edulab.Cohort, participants []edulab.Participant,
	participations []edulab.Participation) (DemographicsResult, error)

type Experiment

type Experiment struct {
	edulab.Experiment
	ElapsedTime string
}

func ExperimentsList

func ExperimentsList(experiments []edulab.Experiment, printer *message.Printer) []Experiment

type Question

type Question struct {
	edulab.Question
	Choices []edulab.QuestionChoice `json:"choices"`
}

func GroupQuestions

func GroupQuestions(questions []edulab.Question, choices []edulab.QuestionChoice) []Question

type QuestionType

type QuestionType struct {
	Value string
	Text  string
}

func QuestionTypes

func QuestionTypes(printer *message.Printer) []QuestionType

Jump to

Keyboard shortcuts

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