sessionmanager

package
v0.0.0-...-2c854d4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Score

type Score struct {
	Exam  *models.Exam
	Score float32
}

func CalcScore

func CalcScore(response *models.Response, exam *models.Exam) *Score

type Scores

type Scores []*Score

func NewScores

func NewScores(responseFileStore *file.ResponseFileStore, session *models.Session) (Scores, error)

func (Scores) String

func (ss Scores) String() string

type SessionManager

type SessionManager struct {
	ParticipantStore *store.ParticipantStore
	QuizStore        *store.QuizStore

	ParticipantFilter map[string]string
	QuizFilter        map[string]string
	ServerURL         string
	Token             int
	// contains filtered or unexported fields
}

func NewSessionManager

func NewSessionManager(url string, pStore *store.ParticipantStore, qStore *store.QuizStore, pFilter map[string]string, qFilter map[string]string) (*SessionManager, error)

func (*SessionManager) GetExams

func (sm *SessionManager) GetExams() []*models.Exam

func (*SessionManager) Pull

func (sm *SessionManager) Pull(rStore *file.ResponseFileStore, sessionID string) error

func (*SessionManager) Push

func (sm *SessionManager) Push(name string) (*models.Session, error)

Jump to

Keyboard shortcuts

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