Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
Consumer for simple queue using buffer channel
func NewConsumer ¶
NewConsumer for create new Consumer instance
func (*Consumer) Queue ¶
func (s *Consumer) Queue(task core.QueuedMessage) error
Queue send task to the buffer channel
func (*Consumer) Request ¶
func (s *Consumer) Request() (core.QueuedMessage, error)
Request a new task from channel
Click to show internal directories.
Click to hide internal directories.