-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
executable file
·41 lines (36 loc) · 1.12 KB
/
types.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
package main
import "github.com/streadway/amqp"
// Params represents the valid parameter options for the rabbitmq plugin.
type Params struct {
Connection Connection
Exchange string
Key string
Mandatory bool
//Immediate bool
WaitConfirm bool
Publishing Publishing
Template string
}
// Connection represents amqp connection options.
type Connection struct {
Host string
Username string
Password string
}
type Publishing struct {
// Application or exchange specific fields,
// the headers exchange will inspect this field.
Headers amqp.Table
// Properties
ContentType string // MIME content type
ContentEncoding string // MIME content encoding
DeliveryMode uint8 // Transient (0 or 1) or Persistent (2)
Priority uint8 // 0 to 9
CorrelationId string // correlation identifier
ReplyTo string // address to to reply to (ex: RPC)
Expiration string // message expiration spec
MessageId string // message identifier
Type string // message type name
UserId string // creating user id - ex: "guest"
AppId string // creating application id
}