Help us shape the future of Go! Take the 2026 Go Developer Survey

sjtu-canvas-cli

module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2026 License: MIT

Directories

Path Synopsis
cmd
sjtu command
Command sjtu is the CLI entry point for SJTU online services.
Command sjtu is the CLI entry point for SJTU online services.
internal
canvas
Package canvas holds the Canvas API surface: bearer-token validation against the current-user endpoint, plus the course/assignment/file reads backing the vfs.
Package canvas holds the Canvas API surface: bearer-token validation against the current-user endpoint, plus the course/assignment/file reads backing the vfs.
cli
Package cli wires the sjtu command tree.
Package cli wires the sjtu command tree.
config
Package config loads and saves the non-sensitive CLI configuration.
Package config loads and saves the non-sensitive CLI configuration.
cred
Package cred stores and retrieves credentials (Canvas token, jAccount session cookie) through a single Store interface.
Package cred stores and retrieves credentials (Canvas token, jAccount session cookie) through a single Store interface.
jaccount
Package jaccount implements QR-code login against SJTU's jAccount SSO and verification of the resulting session cookie.
Package jaccount implements QR-code login against SJTU's jAccount SSO and verification of the resulting session cookie.
logging
Package logging installs the process-wide slog logger: text records appended to the state-directory log file with single-backup rotation, wrapped in credential redaction.
Package logging installs the process-wide slog logger: text records appended to the state-directory log file with single-backup rotation, wrapped in credential redaction.
mlearning
Package mlearning implements the mlearning.sjtu.edu.cn attendance endpoints: the SSO chain that plants the domain's Access_Token cookie, the three read projections behind /courses/<id>/attendance, and the scan-submit write of `sjtu attendance submit`.
Package mlearning implements the mlearning.sjtu.edu.cn attendance endpoints: the SSO chain that plants the domain's Access_Token cookie, the three read projections behind /courses/<id>/attendance, and the scan-submit write of `sjtu attendance submit`.
session
Package session provides authenticated HTTP primitives shared by all SJTU services.
Package session provides authenticated HTTP primitives shared by all SJTU services.
vfs
Package vfs exposes Canvas course content as a read-only io/fs file system.
Package vfs exposes Canvas course content as a read-only io/fs file system.
video
Package video implements the v.sjtu.edu.cn course-video API: the LTI launch chain that yields a per-course jwt-token, the replay and live listings, and the ranged media download path.
Package video implements the v.sjtu.edu.cn course-video API: the LTI launch chain that yields a per-course jwt-token, the replay and live listings, and the ranged media download path.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL