forked from amqp/rhea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
frames.d.ts
45 lines (43 loc) · 1.04 KB
/
frames.d.ts
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/// <reference types="node" />
export interface header {
[x: string]: any;
protocol_id: number;
major: number;
minor: number;
revision: number;
}
export interface frames {
TYPE_AMQP: 0x00;
TYPE_SASL: 0x01;
read_header(buffer: Buffer): header;
write_header(buffer: Buffer, header: header): number;
read_frame(buffer: Buffer): any;
write_frame(frame: any): Buffer;
amqp_frame(channel: any, performative: any, payload: any): {
[x: string]: any;
channel: any | 0;
type: 0x00;
performative: any;
payload: any;
};
sasl_frame(performative: any): {
[x: string]: any;
channel: 0;
type: 0x01;
performative: any;
};
open(obj?: any): any;
begin(obj?: any): any;
attach(obj?: any): any;
flow(obj?: any): any;
transfer(obj?: any): any;
disposition(obj?: any): any;
detach(obj?: any): any;
end(obj?: any): any;
close(obj?: any): any;
sasl_mechanisms(obj?: any): any;
sasl_init(obj?: any): any;
sasl_challenge(obj?: any): any;
sasl_response(obj?: any): any;
sasl_outcome(obj?: any): any;
}