Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotEnoughWorkers = fmt.Errorf("queue requires >= 1 workers")
View Source
var ErrQueueFull = fmt.Errorf("queue is full")
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue interface { Enqueue(func(context.Context)) error // Adds item to the queue Start() // Starts the processing of the queue Stop() // Stops the processing of the queue IsFull() bool }
Queue encapsulates the Enqueue method that will be called by a dispatcher
func NewGenericQueue ¶
func NewMockQueue ¶ added in v0.3.0
func NewMockQueue() Queue
Click to show internal directories.
Click to hide internal directories.