Documentation
¶
Index ¶
- Variables
- type Attendance
- type AttendanceDetail
- type AuthenticationResponse
- type Career
- type CareerSchedule
- type Course
- type DuocAttendance
- type DuocCourse
- type DuocDay
- type DuocGrade
- type DuocGradesCourses
- type DuocSchedule
- type DuocStudentData
- type DuocSubject
- type DuocSubjectAttendance
- type DuocSubjectAttendanceDetail
- type DuocSubjectAttendanceHeader
- type Grades
- type JWTClaims
- type Subject
- type SubjectAttendance
- type User
- type Week
Constants ¶
This section is empty.
Variables ¶
View Source
var NoContentError = errors.New("no content")
Functions ¶
This section is empty.
Types ¶
type Attendance ¶
type Attendance struct { DegreeName string `json:"degree_name"` DegreeCode string `json:"degree_code"` SubjectAttendance []SubjectAttendance `json:"attendance"` }
type AttendanceDetail ¶
type AuthenticationResponse ¶
type CareerSchedule ¶
type DuocAttendance ¶
type DuocAttendance struct { DegreeName string `json:"nomCarrera"` DegreeCode string `json:"codCarrera"` SubjectAttendance []DuocSubjectAttendance `json:"asistenciaAsignaturas"` }
type DuocCourse ¶
type DuocCourse struct { Day string `json:"dia"` Name string `json:"nombre"` StartTime string `json:"horaInicio"` EndTime string `json:"horaFin"` Code string `json:"sigla"` Instructor string `json:"profesor"` Classroom string `json:"sala"` Campus string `json:"sede"` PlanCode string `json:"codPlan"` PlanName string `json:"nombrePlan"` Section string `json:"seccion"` }
type DuocDay ¶
type DuocDay struct { Day string `json:"dia"` Courses []DuocCourse `json:"ramos"` }
type DuocGradesCourses ¶
type DuocGradesCourses struct { DegreeName string `json:"nomCarrera"` DegreeCode string `json:"codCarrera"` Subjects []DuocSubject `json:"asignaturas"` }
type DuocSchedule ¶
type DuocStudentData ¶
type DuocStudentData struct { NombreCompleto string `json:"nombreCompleto"` Rut string `json:"rut"` Avatar string `json:"avatar"` Carreras []struct { Escuela string `json:"escuela"` NomCarrera string `json:"nomCarrera"` CodCarrera string `json:"codCarrera"` Sede string `json:"sede"` } `json:"carreras"` }
Student Data
type DuocSubject ¶
type DuocSubjectAttendance ¶
type DuocSubjectAttendance struct { Header DuocSubjectAttendanceHeader `json:"cabecera"` Details []DuocSubjectAttendanceDetail `json:"detalle"` }
type SubjectAttendance ¶
type User ¶
type User struct { FullName string `json:"full_name"` Rut string `json:"rut"` Avatar string `json:"avatar"` Careers []Career `json:"careers"` Email string `json:"email,omitempty"` Username string `json:"username,omitempty"` StudentCode string `json:"codAlumno,omitempty"` // It's probably an int, but well. StudentId int `json:"idAlumno,omitempty"` // Why two ids (?) I don't know. // AccessToken string `json:"access_token,omitempty"` AccessTokenExpiresIn int `json:"access_token_expires_in,omitempty"` RefreshToken string `json:"refresh_token,omitempty"` RefreshTokenExpiresIn int `json:"refresh_expires_in,omitempty"` }
Click to show internal directories.
Click to hide internal directories.