mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
50 lines
689 B
Ruby
50 lines
689 B
Ruby
VALID_TTL = 300
|
|
VALID_GRACE = 300
|
|
|
|
METADATA_FORMAT = {
|
|
}
|
|
|
|
QUEUE_FORMAT = {
|
|
'metadata' => METADATA_FORMAT
|
|
}
|
|
|
|
LIST_QUEUES_FORMAT = {
|
|
'queues' => [
|
|
QUEUE_FORMAT.merge({
|
|
'name' => String,
|
|
'href' => String,
|
|
})
|
|
],
|
|
'links' => LINKS_FORMAT
|
|
}
|
|
|
|
MESSAGE_FORMAT = {
|
|
'href' => String,
|
|
'ttl' => Integer,
|
|
'age' => Integer,
|
|
'body' => Hash
|
|
}
|
|
|
|
LIST_MESSAGES_FORMAT = {
|
|
'messages' => [MESSAGE_FORMAT],
|
|
'links' => LINKS_FORMAT
|
|
}
|
|
|
|
CREATE_CLAIM_FORMAT = [
|
|
MESSAGE_FORMAT
|
|
]
|
|
|
|
CLAIM_FORMAT = {
|
|
'ttl' => Integer,
|
|
'age' => Integer,
|
|
'messages' => [
|
|
MESSAGE_FORMAT
|
|
]
|
|
}
|
|
|
|
QUEUE_STATS_FORMAT = {
|
|
'messages' => {
|
|
'free' => Integer,
|
|
'claimed' => Integer
|
|
}
|
|
}
|