Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue struct { Name string Queue *queue.BoundedQueue Limit int Workers int // contains filtered or unexported fields }
Queue to hold items
func New ¶
func New(logger *zap.Logger, name string, limit int, consumer func(item interface{}), workers int) *Queue
New returns brandnew queue
Click to show internal directories.
Click to hide internal directories.