Documentation
¶
Overview ¶
Package jobs models the compile-time contract shared by portable job adapters. It discovers typed Job subclasses without coupling the compiler pipeline to a particular queue implementation.
Index ¶
Constants ¶
View Source
const ( PackageName = "trb/jobs" TypeProvider = "trb.jobs" ProjectProvider = "trb.jobs.manifest" )
Variables ¶
This section is empty.
Functions ¶
func Declarations ¶
func Declarations(programs []*ast.Program) (*declaration.Catalog, error)
Types ¶
type Job ¶
type Manifest ¶
type Manifest struct {
Jobs []Job
}
func ManifestFrom ¶
func (*Manifest) ExtensionName ¶
type PerformKind ¶ added in v0.3.0
type PerformKind string
const ( // PerformVoid is the zero value so manifests assembled by package tests and // third-party integrations keep the ordinary infallible Job contract. PerformVoid PerformKind = "" PerformJobResult PerformKind = "job_result" )
Directories
¶
| Path | Synopsis |
|---|---|
|
Package sqladapter owns the compile-time configuration for the official trb/jobs/sql adapter.
|
Package sqladapter owns the compile-time configuration for the official trb/jobs/sql adapter. |
|
Package sqlstore defines the durable state model and dialect-specific SQL used by the portable SQL job adapter.
|
Package sqlstore defines the durable state model and dialect-specific SQL used by the portable SQL job adapter. |
Click to show internal directories.
Click to hide internal directories.