forked from postwait/node-amqp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.js
32 lines (30 loc) · 845 Bytes
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module.exports = {
AMQPTypes: Object.freeze({
STRING: 'S'.charCodeAt(0)
, INTEGER: 'I'.charCodeAt(0)
, HASH: 'F'.charCodeAt(0)
, TIME: 'T'.charCodeAt(0)
, DECIMAL: 'D'.charCodeAt(0)
, BOOLEAN: 't'.charCodeAt(0)
, SIGNED_8BIT: 'b'.charCodeAt(0)
, SIGNED_16BIT: 's'.charCodeAt(0)
, SIGNED_64BIT: 'l'.charCodeAt(0)
, _32BIT_FLOAT: 'f'.charCodeAt(0)
, _64BIT_FLOAT: 'd'.charCodeAt(0)
, VOID: 'v'.charCodeAt(0)
, BYTE_ARRAY: 'x'.charCodeAt(0)
, ARRAY: 'A'.charCodeAt(0)
, TEN: '10'.charCodeAt(0)
, BOOLEAN_TRUE: '\x01'
, BOOLEAN_FALSE:'\x00'
})
, Indicators: Object.freeze({
FRAME_END: 206
})
, FrameType: Object.freeze({
METHOD: 1
, HEADER: 2
, BODY: 3
, HEARTBEAT: 8
})
}