Documentation
¶
Overview ¶
Package classes reads the public USC Schedule of Classes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client reads the public USC Schedule of Classes API.
type Course ¶
type Course struct {
Code string `json:"code"`
Title string `json:"title"`
Description string `json:"description"`
TermCode int `json:"term_code"`
Units []float64 `json:"units"`
RemainingSeats int `json:"remaining_seats"`
SeatCount int `json:"seat_count"`
Sections []Section `json:"sections"`
}
Course is a course and all of its scheduled sections for one term.
type Instructor ¶
Instructor is a section instructor.
type Meeting ¶
type Meeting struct {
DayCode string `json:"day_code"`
Days []string `json:"days"`
StartTime string `json:"start_time"`
EndTime string `json:"end_time"`
}
Meeting is one recurring meeting time for a section.
type Section ¶
type Section struct {
ID string `json:"id"`
Type string `json:"type"`
Cancelled bool `json:"cancelled"`
DClearance bool `json:"d_clearance"`
TotalSeats int `json:"total_seats"`
RegisteredSeats int `json:"registered_seats"`
WaitlistedSeats *int `json:"waitlisted_seats"`
OpenSeats int `json:"open_seats"`
Full bool `json:"full"`
Units []string `json:"units"`
Schedule []Meeting `json:"schedule"`
Instructors []Instructor `json:"instructors"`
Syllabus string `json:"syllabus"`
}
Section is one scheduled lecture, lab, quiz, or other class section.