rmq icon indicating copy to clipboard operation
rmq copied to clipboard

question?

Open rezaalimorady opened this issue 3 years ago • 1 comments

taskConsumer := &TaskConsumer{}
name, err := taskQueue.AddConsumer("task-consumer", taskConsumer)

At your example i give error on &TaskConsumer{}. Couldn't find that

image

rezaalimorady avatar Feb 12 '22 12:02 rezaalimorady

So TaskConsumer would be a struct you have to define on your own. And it needs to implement the Consumer interface so that you can use it in the AddConsumer() function. There are some examples of that in this repo.

wellle avatar Feb 18 '22 11:02 wellle