cony icon indicating copy to clipboard operation
cony copied to clipboard

Inspect message and consumer counts for a queue.

Open phensley opened this issue 9 years ago • 6 comments

re #34

phensley avatar Jun 24 '16 14:06 phensley

@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?

kron4eg avatar Jun 24 '16 15:06 kron4eg

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 avatar Jun 24 '16 16:06 phensley

@phensley would it make it for you if cony will expose current *amqp.Connection through some getter?

kron4eg avatar Jun 25 '16 12:06 kron4eg

@kron4eg You could export Connection() (*amqp.Connection, error) and I could move the QueueInspect method into my own code.

phensley avatar Jun 25 '16 12:06 phensley

@phensley yeah, that's what I meant.

kron4eg avatar Jun 25 '16 12:06 kron4eg

@kron4eg Works for me.

phensley avatar Jun 25 '16 12:06 phensley