cony
cony copied to clipboard
Inspect message and consumer counts for a queue.
re #34
@phensley Thank you! Looks good to me but before merge I'd like to see in what context this will be used. Could you please provide more background on this?
The use case we have is for a daemon to be aware of a queue's current size, and whether there are > 0 consumers, and be able to take action.
@phensley would it make it for you if cony will expose current *amqp.Connection through some getter?
@kron4eg You could export Connection() (*amqp.Connection, error) and I could move the QueueInspect method into my own code.
@phensley yeah, that's what I meant.
@kron4eg Works for me.