Versions in this module Expand all Collapse all v3 v3.51.1 Oct 15, 2026 v3.51.0 Oct 15, 2026 v3.50.0 Oct 15, 2026 v3.49.2 Oct 1, 2026 v3.49.1 Sep 24, 2026 v3.49.0 Sep 24, 2026 v3.48.0 Sep 24, 2026 Changes in this version + type InsertAccessRequestParams struct + Department string + Email string + Name string + Reason string + RequestedAt time.Time type Querier + DeleteUser func(ctx context.Context, email string) (int64, error) + GetUser func(ctx context.Context, email string) (User, error) + InsertAccessRequest func(ctx context.Context, arg InsertAccessRequestParams) (User, error) + ListUsers func(ctx context.Context) ([]User, error) + SetUserStatus func(ctx context.Context, arg SetUserStatusParams) (User, error) type Queries + func (q *Queries) DeleteUser(ctx context.Context, email string) (int64, error) + func (q *Queries) GetUser(ctx context.Context, email string) (User, error) + func (q *Queries) InsertAccessRequest(ctx context.Context, arg InsertAccessRequestParams) (User, error) + func (q *Queries) ListUsers(ctx context.Context) ([]User, error) + func (q *Queries) SetUserStatus(ctx context.Context, arg SetUserStatusParams) (User, error) + type SetUserStatusParams struct + DecidedAt *time.Time + DecidedBy string + Email string + Status string + type User struct + DecidedAt *time.Time + DecidedBy string + Department string + Email string + Name string + Reason string + RequestedAt time.Time + Status string v3.47.1 Sep 24, 2026 v3.47.0 Sep 23, 2026 v3.46.0 Sep 23, 2026 Changes in this version + type Activity struct + Assignment string + At time.Time + Course string + Detail string + ID int64 + Op string + Owner string + Params []byte + Status string + type ActivityForParams struct + Assignment string + Course string + Lim *int32 + Owner string + type AllActivityForParams struct + Lim *int32 + Owner string + type CancelJobParams struct + FinishedAt time.Time + ID string + Owner string + type ClaimDueJobParams struct + Now time.Time + WorkerID string + type Course struct + FormatVersion int + ImportedAt time.Time + Name string + Owner string + RawYaml []byte + Source []byte + UpdatedAt time.Time + type CourseActivityForParams struct + Course string + Lim *int32 + Owner string + type CourseOfParams struct + Name string + Owner string + type DBTX interface + Exec func(context.Context, string, ...interface{}) (pgconn.CommandTag, error) + Query func(context.Context, string, ...interface{}) (pgx.Rows, error) + QueryRow func(context.Context, string, ...interface{}) pgx.Row + type DeleteCourseParams struct + Name string + Owner string + type Event struct + Actor string + ActorName string + Assignment string + At time.Time + Course string + Department string + Detail string + ID int64 + JobID string + Op string + Severity string + Type string + type EventsBetweenParams struct + At time.Time + At_2 time.Time + type FinishJobParams struct + Err string + FinishedAt time.Time + ID string + Log string + Status string + type JobOfParams struct + ID string + Owner string + type JobsOfParams struct + Owner string + Statuses []string + type Querier interface + ActivityFor func(ctx context.Context, arg ActivityForParams) ([]Activity, error) + AllActivityFor func(ctx context.Context, arg AllActivityForParams) ([]Activity, error) + CancelJob func(ctx context.Context, arg CancelJobParams) (ScheduledJob, error) + ClaimDueJob func(ctx context.Context, arg ClaimDueJobParams) (ScheduledJob, error) + CourseActivityFor func(ctx context.Context, arg CourseActivityForParams) ([]Activity, error) + CourseOf func(ctx context.Context, arg CourseOfParams) (Course, error) + CoursesOf func(ctx context.Context, owner string) ([]Course, error) + DeleteCourse func(ctx context.Context, arg DeleteCourseParams) (int64, error) + DeleteUserGitLabToken func(ctx context.Context, owner string) error + EventsBetween func(ctx context.Context, arg EventsBetweenParams) ([]Event, error) + FinishJob func(ctx context.Context, arg FinishJobParams) error + GetUserSecret func(ctx context.Context, owner string) (UserSecret, error) + JobOf func(ctx context.Context, arg JobOfParams) (ScheduledJob, error) + JobsOf func(ctx context.Context, arg JobsOfParams) ([]ScheduledJob, error) + MarkNotified func(ctx context.Context, id string) error + ReapExpiredEvents func(ctx context.Context, before time.Time) (int64, error) + ReapExpiredJobs func(ctx context.Context, before time.Time) (int64, error) + RecentEvents func(ctx context.Context, arg RecentEventsParams) ([]Event, error) + RecordActivity func(ctx context.Context, arg RecordActivityParams) error + RecordEvent func(ctx context.Context, arg RecordEventParams) error + SaveCourse func(ctx context.Context, arg SaveCourseParams) error + SaveJob func(ctx context.Context, arg SaveJobParams) error + SaveUserGitLabToken func(ctx context.Context, arg SaveUserGitLabTokenParams) error + SetSummarySentAt func(ctx context.Context, summarySentAt *time.Time) error + SystemState func(ctx context.Context) (SystemState, error) + UnnotifiedTerminalJobs func(ctx context.Context) ([]ScheduledJob, error) + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) ActivityFor(ctx context.Context, arg ActivityForParams) ([]Activity, error) + func (q *Queries) AllActivityFor(ctx context.Context, arg AllActivityForParams) ([]Activity, error) + func (q *Queries) CancelJob(ctx context.Context, arg CancelJobParams) (ScheduledJob, error) + func (q *Queries) ClaimDueJob(ctx context.Context, arg ClaimDueJobParams) (ScheduledJob, error) + func (q *Queries) CourseActivityFor(ctx context.Context, arg CourseActivityForParams) ([]Activity, error) + func (q *Queries) CourseOf(ctx context.Context, arg CourseOfParams) (Course, error) + func (q *Queries) CoursesOf(ctx context.Context, owner string) ([]Course, error) + func (q *Queries) DeleteCourse(ctx context.Context, arg DeleteCourseParams) (int64, error) + func (q *Queries) DeleteUserGitLabToken(ctx context.Context, owner string) error + func (q *Queries) EventsBetween(ctx context.Context, arg EventsBetweenParams) ([]Event, error) + func (q *Queries) FinishJob(ctx context.Context, arg FinishJobParams) error + func (q *Queries) GetUserSecret(ctx context.Context, owner string) (UserSecret, error) + func (q *Queries) JobOf(ctx context.Context, arg JobOfParams) (ScheduledJob, error) + func (q *Queries) JobsOf(ctx context.Context, arg JobsOfParams) ([]ScheduledJob, error) + func (q *Queries) MarkNotified(ctx context.Context, id string) error + func (q *Queries) ReapExpiredEvents(ctx context.Context, before time.Time) (int64, error) + func (q *Queries) ReapExpiredJobs(ctx context.Context, before time.Time) (int64, error) + func (q *Queries) RecentEvents(ctx context.Context, arg RecentEventsParams) ([]Event, error) + func (q *Queries) RecordActivity(ctx context.Context, arg RecordActivityParams) error + func (q *Queries) RecordEvent(ctx context.Context, arg RecordEventParams) error + func (q *Queries) SaveCourse(ctx context.Context, arg SaveCourseParams) error + func (q *Queries) SaveJob(ctx context.Context, arg SaveJobParams) error + func (q *Queries) SaveUserGitLabToken(ctx context.Context, arg SaveUserGitLabTokenParams) error + func (q *Queries) SetSummarySentAt(ctx context.Context, summarySentAt *time.Time) error + func (q *Queries) SystemState(ctx context.Context) (SystemState, error) + func (q *Queries) UnnotifiedTerminalJobs(ctx context.Context) ([]ScheduledJob, error) + func (q *Queries) WithTx(tx pgx.Tx) *Queries + type RecentEventsParams struct + At time.Time + Lim *int32 + type RecordActivityParams struct + Assignment string + At time.Time + Course string + Detail string + Op string + Owner string + Params []byte + Status string + type RecordEventParams struct + Actor string + ActorName string + Assignment string + At time.Time + Course string + Department string + Detail string + JobID string + Op string + Severity string + Type string + type SaveCourseParams struct + ImportedAt time.Time + Name string + Owner string + RawYaml []byte + Source []byte + UpdatedAt time.Time + type SaveJobParams struct + Assignment string + ConfigHash string + Course string + CreatedAt time.Time + Err string + FinishedAt *time.Time + GraceMinutes int + ID string + Log string + Notified bool + OnlyFor []string + Op string + Owner string + Params []byte + RunAt time.Time + StartedAt *time.Time + Status string + WorkerID string + type SaveUserGitLabTokenParams struct + GitlabCiphertext []byte + GitlabKeyVersion *int + GitlabNonce []byte + GitlabUpdatedAt *time.Time + Owner string + type ScheduledJob struct + Assignment string + ConfigHash string + Course string + CreatedAt time.Time + Err string + FinishedAt *time.Time + GraceMinutes int + ID string + Log string + Notified bool + OnlyFor []string + Op string + Owner string + Params []byte + RunAt time.Time + StartedAt *time.Time + Status string + WorkerID string + type SystemState struct + ID string + SummarySentAt *time.Time + type UserSecret struct + GitlabCiphertext []byte + GitlabKeyVersion *int + GitlabNonce []byte + GitlabUpdatedAt *time.Time + Owner string