Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assignment ¶ added in v1.0.2
type Assignment struct { ID int FileNameDisplay string FileName string UserID int SectionID int CourseID int Mark int TotalValue int Description string Processed int CreatedAt time.Time UpdatedAt time.Time User models.User Course Course GradedFile string GradedFileDisplayName string }
Assignment holds an assignment
type Course ¶
type Course struct { ID int CourseName string Active int Lectures []Lecture Description string CreatedAt time.Time UpdatedAt time.Time }
Course describes course model
type CourseAccess ¶ added in v1.1.0
type CourseAccess struct { ID int UserID int LectureID int CourseID int SectionID int Duration int CreatedAt time.Time UpdatedAt time.Time Student models.User Course Course Lecture Lecture Section Section }
CourseAccess records course access
type CourseTraffic ¶ added in v1.3.1
type CourseTraffic struct { LectureName string `json:"y"` TotalTime int `json:"time"` TotalViews int `json:"views"` }
CourseTraffic holds traffic data
type Lecture ¶
type Lecture struct { ID int LectureName string CourseID int VideoID int Video models.Video SortOrder int Active int Notes string PostedDate time.Time CreatedAt time.Time UpdatedAt time.Time SectionID int Section Section }
Lecture describes a lecture
type Section ¶ added in v1.4.0
type Section struct { ID int CourseID int SectionName string Active int Term string ProfName string ProfEmail string TeamsLink string CreatedAt time.Time UpdatedAt time.Time Course Course Students []Student }
Section holds a section and associated course
type Student ¶ added in v1.1.2
type Student struct { ID int FirstName string LastName string UserActive int AccessLevel int Email string Password []byte CreatedAt time.Time UpdatedAt time.Time Google2faSecret string UseTfa int LoginTypesId int DeletedAt time.Time EmailVerifiedAt time.Time Roles map[string]int Avatar string Preferences map[string]string TimeInCourse int Assignments []Assignment Courses []Section IsRegistered int }
Student holds a student
Click to show internal directories.
Click to hide internal directories.