Documentation ¶
Index ¶
- func ClassesAsApiClassList(classes []Class) api.ClassList
- func GradesAsApiGradeList(students []Grade) api.GradeList
- func StudentsAsApiStudentList(students []Student) api.StudentList
- func TeachersAsApiTeacherList(teachers []Teacher) api.TeacherList
- type BaseMetadata
- type Class
- type Grade
- type Student
- type Teacher
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClassesAsApiClassList ¶
func GradesAsApiGradeList ¶
func StudentsAsApiStudentList ¶
func StudentsAsApiStudentList(students []Student) api.StudentList
func TeachersAsApiTeacherList ¶
func TeachersAsApiTeacherList(teachers []Teacher) api.TeacherList
Types ¶
type BaseMetadata ¶
type Class ¶
type Class struct { // Name is the computer-friendly name of the class Name string `json:"name"` // DisplayName is the human-friendly name of the class DisplayName string `json:"display_name"` // Description is the human-readable description of what the class teaches. Description *string `json:"description"` StudentIds []string `json:"studentIds"` StartDate time.Time `json:"startDate"` EndDate time.Time `json:"endDate"` BaseMetadata }
Class represents a class students can attend
func (*Class) AsApiClass ¶
type Grade ¶
type Grade struct { BaseMetadata ClassId string `json:"classId"` // StudentId is the ID of the student this Grade applies to. StudentId string `json:"studentId"` // Value is the value of the Grade. Value int `json:"value"` }
func (*Grade) AsApiGrade ¶
type Student ¶
type Student struct { BaseMetadata // FullName is the student's full legal name. FullName string `json:"fullName"` ClassId string `json:"classId"` }
func (*Student) AsApiStudent ¶
type Teacher ¶
type Teacher struct { FullName string `json:"fullName"` Email string `json:"email"` PasswordHash string `json:"-"` BaseMetadata }
func (*Teacher) AsApiTeacher ¶
Click to show internal directories.
Click to hide internal directories.