Documentation
¶
Overview ¶
Package job is the Redis-backed model.JobStore (gap #8): persists completed (and, later, in-flight) async job records so GET /v0/jobs and GET /v0/jobs/{id} have something real to serve instead of a dead job_url.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a Redis-backed model.JobStore.
func (*Store) Get ¶
Get returns the job record for id. ok is false (with nil error) when the id is unknown or its record has expired.
func (*Store) List ¶
List returns up to limit most-recent job records, newest first. IDs whose record already expired (index outlives data by at most one ttl window, see Put) are skipped rather than erroring.
Click to show internal directories.
Click to hide internal directories.