-
Notifications
You must be signed in to change notification settings - Fork 0
/
structure.go
59 lines (52 loc) · 1.11 KB
/
structure.go
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
package gorabbit
import amqp "github.com/rabbitmq/amqp091-go"
// ConnectionConfig connection configuration parameters
type ConnectionConfig struct {
Host string
Port string
UserName string
Password string
VHost string
}
// Queue queue configuration parameters
type Queue struct {
Name string
Durable bool
AutoDelete bool
Exclusive bool
NoWait bool
Args amqp.Table
}
// QueueBinding queueBinding configuration parameters
type QueueBinding struct {
Exchange Exchange
RoutingKey []string
NoWait bool
Args amqp.Table
}
// Exchange exchange configuration parameters
type Exchange struct {
Name string
Kind string
Durable bool
AutoDelete bool
Internal bool
NoWait bool
Args amqp.Table
}
// ConsumerConfig consumer configuration parameters
type ConsumerConfig struct {
Tag string
AutoAck bool
Exclusive bool
NoLocal bool
NoWait bool
Args amqp.Table
}
// PublisherConfig publisher configuration parameters
type PublisherConfig struct {
ExchangeName string
RoutingKey string
Mandatory bool
Immediate bool
}