This repository has been archived by the owner on Mar 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
bindings.yml
159 lines (142 loc) · 3.18 KB
/
bindings.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
asyncapi: 2.0.0
info:
title: Bindings
version: 1.0.0
servers:
"MQTT-Server":
url: dummy
protocol: mqtt
bindings:
mqtt:
clientId: guest
cleanSession: true
lastWill:
topic: /last-wills
qos: 2
message: Guest gone offline.
retain: false
keepAlive: 60
bindingVersion: 0.1.0
channels:
"WebSockets-Channel":
bindings:
ws:
method: GET
query:
type: object
properties:
userId:
type: string
description: User Id
headers:
type: object
properties:
x-apikey:
type: string
description: API Key
bindingVersion: 0.1.0
"AMQP-Channel-RoutingKey":
bindings:
amqp:
is: routingKey
exchange:
name: events
type: topic
durable: true
autoDelete: false
vhost: /
bindingVersion: 0.1.0
"AMQP-Channel-Queue":
bindings:
amqp:
is: queue
queue:
name: events
durable: true
exclusive: false
autoDelete: false
vhost: /
bindingVersion: 0.1.0
"HTTP-Channel-Operation":
subscribe:
message:
$ref: "#/components/messages/HTTP-Message"
bindings:
http:
type: request
method: GET
query:
type: object
properties:
userId:
type: string
description: User Id
bindingVersion: 0.1.0
"Kafka-Channel-Operation":
subscribe:
message:
$ref: "#/components/messages/Kafka-Message"
bindings:
kafka:
groupId:
type: string
enum: ["users"]
clientId:
type: string
enum: ["guest"]
bindingVersion: 0.1.0
"AMQP-Channel-Operation":
subscribe:
message:
$ref: "#/components/messages/AMQP-Message"
bindings:
amqp:
expiration: 60
userId: guest
cc: ["user.log", "support.log"]
priority: 10
deliveryMode: 2
mandatory: false
bcc: ["external.audit"]
replyTo: user.reply
timestamp: true
ack: true
bindingVersion: 0.1.0
"MQTT-Channel-Operation":
subscribe:
message:
$ref: "#/components/messages/MQTT-Message"
bindings:
mqtt:
qos: 1
retain: true
bindingVersion: 0.1.0
components:
messages:
"HTTP-Message":
bindings:
http:
headers:
type: object
properties:
x-apikey:
type: string
description: API Key
bindingVersion: 0.1.0
"Kafka-Message":
bindings:
kafka:
key:
type: string
enum: ["key"]
bindingVersion: 0.1.0
"AMQP-Message":
bindings:
amqp:
contentEncoding: gzip
messageType: user.register
bindingVersion: 0.1.0
"MQTT-Message":
bindings:
mqtt:
bindingVersion: 0.1.0