Skip to main content

Implement driver.Driver[TTx] where TTx is your transaction type:

See driver/driver.go for the full core interface and optional rescue/admin capabilities, and driver/memory/memory.go for a reference implementation. Every Executor also implements driver.JobResultStore (JobResultPut, JobResultGet, JobResultDelete; JobDelete removes the result too), which driver/drivertest.RunResults verifies. Driver authors can reuse driver/drivertest.Run for the base contract and driver/drivertest.RunScheduled with an injected clock.Manual for scheduled-job conformance. The base contract includes opaque job/queue pagination, deterministic ordering, invalid-cursor classification, fencing, and typed stale-claim behavior.

Project layout#