You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rabbitmq/config.go
+13-9Lines changed: 13 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -2,29 +2,32 @@ package rabbitmq
2
2
3
3
import"fmt"
4
4
5
-
typeRabbitMqConfstruct {
5
+
typeRabbitConfstruct {
6
6
Usernamestring
7
7
Passwordstring
8
8
Hoststring
9
9
Portint
10
10
VHoststring`json:",optional"`
11
11
}
12
12
13
-
typeRabbitMqListenerConfstruct {
14
-
RabbitMqConf
13
+
typeRabbitListenerConfstruct {
14
+
RabbitConf
15
15
ListenerQueues []ConsumerConf
16
16
}
17
17
18
18
typeConsumerConfstruct {
19
19
Namestring
20
20
AutoAckbool`json:",default=true"`
21
21
Exclusivebool`json:",default=false"`
22
-
NoLocalbool`json:",default=false"`// Set to true, which means that messages sent by producers in the same connection cannot be delivered to consumers in this connection
23
-
NoWaitbool`json:",default=false"`// Whether to block processing
22
+
// Set to true, which means that messages sent by producers in the same connection
23
+
// cannot be delivered to consumers in this connection.
24
+
NoLocalbool`json:",default=false"`
25
+
// Whether to block processing
26
+
NoWaitbool`json:",default=false"`
24
27
}
25
28
26
-
typeRabbitMqSenderConfstruct {
27
-
RabbitMqConf
29
+
typeRabbitSenderConfstruct {
30
+
RabbitConf
28
31
ContentTypestring`json:",default=text/plain"`// MIME content type
0 commit comments