Documentation
¶
Overview ¶
Package maintenance runs housekeeping jobs: expired sessions and sign-in challenges, audit-log retention, and lists deleted longer ago than they can be restored.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CleanupArgs ¶
type CleanupArgs struct{}
CleanupArgs is the periodic housekeeping job.
func (CleanupArgs) InsertOpts ¶
func (CleanupArgs) InsertOpts() river.InsertOpts
InsertOpts keeps one cleanup job at a time on the maintenance queue.
type CleanupWorker ¶
type CleanupWorker struct {
river.WorkerDefaults[CleanupArgs]
Pool *pgxpool.Pool
Log *slog.Logger
}
CleanupWorker deletes expired auth state, audit entries past retention and lists past their restore window.
func (*CleanupWorker) Work ¶
func (w *CleanupWorker) Work(ctx context.Context, _ *river.Job[CleanupArgs]) error
Work implements river.Worker.
Click to show internal directories.
Click to hide internal directories.