Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue struct { sync.Mutex Timeout time.Duration Strategy Strategy // contains filtered or unexported fields }
Queue is a queue that implements bucket based depth-first or breadth-first queue.
The breadth-first queues allow defining scores on whose basis the bucket is distributed. Lower scores are picked up first, and higher scores which have a greater chance of being just random noise are picked up later in depth first.
Depth-first queue uses a simple stack for LIFO operations and distributes items as they come in.
Click to show internal directories.
Click to hide internal directories.