Versions in this module Expand all Collapse all v0 v0.1.1 Nov 20, 2026 v0.1.0 Nov 12, 2026 Changes in this version + type BinState struct + Registered bool + Scheduled bool + type CalendarEvent struct + End time.Time + ID string + SectionID string + Start time.Time + Status string + Title string + type Checkout struct + Groups []CheckoutGroup + Message string + Ready bool + Term string + type CheckoutGroup struct + Action string + Courses []Course + Heading string + type CheckoutResult struct + Messages []string + Status string + Succeeded bool + Term string + type Client struct + func New(httpClient Doer) *Client + func Open(ctx context.Context, options auth.Options) (*Client, error) + func (c *Client) Add(ctx context.Context, term string, sectionID int) error + func (c *Client) Calendar(ctx context.Context, term string) ([]CalendarEvent, error) + func (c *Client) Checkout(ctx context.Context, term string) (*Checkout, error) + func (c *Client) CourseBin(ctx context.Context, term string) (*CourseBin, error) + func (c *Client) Courses(ctx context.Context, term string, query CourseQuery) ([]Course, error) + func (c *Client) Programs(ctx context.Context, term string) ([]School, error) + func (c *Client) Remove(ctx context.Context, term string, sectionID int) error + func (c *Client) Schedule(ctx context.Context, term string, sectionID int) error + func (c *Client) SelectTerm(ctx context.Context, term string) error + func (c *Client) SetGradeOption(ctx context.Context, term string, sectionID int, code string) (string, error) + func (c *Client) Submit(ctx context.Context, term string) (*CheckoutResult, error) + func (c *Client) Terms(ctx context.Context) ([]Term, error) + func (c *Client) Unschedule(ctx context.Context, term string, sectionID int) error + type Course struct + Code string + Description string + Prerequisites []string + Sections []Section + Title string + type CourseBin struct + AsOf string + Courses []Course + RegisteredSections int + ScheduledSections int + Term string + func (b *CourseBin) Section(id int) (*Section, error) + type CourseQuery struct + Course string + Program string + type Doer interface + Do func(*http.Request) (*http.Response, error) + type Error struct + Message string + Operation string + Status int + func (e *Error) Error() string + type GradeChoice struct + Code string + Name string + type GradeOption struct + ChangeRequest bool + Choices []GradeChoice + Current string + type Program struct + Code string + Name string + type School struct + Name string + Programs []Program + type Seats struct + Capacity int + Closed bool + Registered int + Text string + type Section struct + Clearance string + CourseBin *BinState + Days []string + GradeOption *GradeOption + ID int + InCourseBin *bool + Instructors []string + Locations []string + Notes []string + Seats Seats + Session string + Times []string + Type string + Units string + type Term struct + Active bool + Code string + Name string