Expand description
The dashboard, attached the way every optional package is:
ⓘ
App::new().plugin(QueueDashboard::new(queue).watching(["default", "emails"]))One explicit line in main.rs, no auto-discovery. Registering it also puts
the queue into the application context, so a handler can reach it with
req.state::<Arc<dyn Queue>>() and dispatch a job without the application
wiring that up separately.
JSON rather than HTML: this is the data a Horizon-style dashboard is drawn from, and rustlavel-view is not a dependency of this crate.
Structs§
- Queue
Dashboard - A read-only view of what the queue is doing.