examples/

directory
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2026 License: MIT

README

Examples

  • basic is a runnable single-process example using the memory lease backend and a short cooperative executor.
  • queue wires an application-provided durable queue backend and distributed lease store into a production-shaped runner.

Run the basic example with go run ./examples/basic. Multi-replica services must replace the memory store with PostgreSQL or Valkey and should use the queue dispatcher shape.

Directories

Path Synopsis
Command basic runs a single-process scheduler with an in-memory lease store.
Command basic runs a single-process scheduler with an in-memory lease store.
Package queueexample demonstrates wiring durable queue dispatch into a scheduler runner.
Package queueexample demonstrates wiring durable queue dispatch into a scheduler runner.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL