Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotEnoughWorkers = errors.New("queue requires >= 1 workers")
View Source
var ErrQueueFull = errors.New("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 }
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.