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. |
|
daemon
Package daemon runs the sjtu daemon: a purely passive local service that executes the same command implementations as the CLI over HTTP on a unix socket, plus health probes and transition notifications.
|
Package daemon runs the sjtu daemon: a purely passive local service that executes the same command implementations as the CLI over HTTP on a unix socket, plus health probes and transition notifications. |
|
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 two 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 two 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. |
Click to show internal directories.
Click to hide internal directories.