forked from wellle/rmq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
redis_keys.go
17 lines (14 loc) · 1.25 KB
/
redis_keys.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package rmq
const (
connectionsKey = "rmq::connections" // Set of connection names
connectionHeartbeatTemplate = "rmq::connection::{connection}::heartbeat" // expires after {connection} died
connectionQueuesTemplate = "rmq::connection::{connection}::queues" // Set of queues consumers of {connection} are consuming
connectionQueueConsumersTemplate = "rmq::connection::{connection}::queue::[{queue}]::consumers" // Set of all consumers from {connection} consuming from {queue}
connectionQueueUnackedTemplate = "rmq::connection::{connection}::queue::[{queue}]::unacked" // List of deliveries consumers of {connection} are currently consuming
queuesKey = "rmq::queues" // Set of all open queues
queueReadyTemplate = "rmq::queue::[{queue}]::ready" // List of deliveries in that {queue} (right is first and oldest, left is last and youngest)
queueRejectedTemplate = "rmq::queue::[{queue}]::rejected" // List of rejected deliveries from that {queue}
phConnection = "{connection}" // connection name
phQueue = "{queue}" // queue name
phConsumer = "{consumer}" // consumer name (consisting of tag and token)
)