Documentation
¶
Overview ¶
Package inmem provides a non-durable, in-process queue.Service.
Jobs live in two per-topic structures: a min-heap of delayed jobs (keyed by run_at) and a priority queue of ready jobs (keyed by -priority, then FIFO sequence). A timer goroutine moves jobs from delayed to ready as their run_at arrives. Workers wait on a sync.Cond and pop from the ready queue.
**Not durable across process restarts.** Use the sqlite backend for embedded durability without an external server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the in-memory queue.Service implementation.
Click to show internal directories.
Click to hide internal directories.