Documentation
¶
Index ¶
- Constants
- func Connect(rabbitURL string) (*amqp.Connection, error)
- func ConsumeMessages(ch *amqp.Channel, queueName string, ...) error
- func CreateReplyQueue(channel *amqp.Channel) (string, error)
- func DeclareQueue(ch *amqp.Channel, queueName string) (amqp.Queue, error)
- func GenerateCorrelationId() string
- func PublishToQueueWithResponse(msg Message) ([]byte, error)
- func ReceiveResponse(correlationId, replyQueue string, ch *amqp.Channel) ([]byte, error)
- func RegisterConsumer(ch *amqp.Channel, queueName string) (<-chan amqp.Delivery, error)
- func ReplyToMessage(ch *amqp.Channel, d amqp.Delivery, replyData []byte) error
- type Message
Constants ¶
View Source
const ( ContentTypeTextPlain contentType = "text/plain" ContentTypeTextHTML contentType = "text/html" ContentTypeTextCSV contentType = "text/csv" ContentTypeJSON contentType = "application/json" ContentTypeXML contentType = "application/xml" ContentTypeOctetStream contentType = "application/octet-stream" ContentTypePDF contentType = "application/pdf" ContentTypeJPEG contentType = "image/jpeg" ContentTypePNG contentType = "image/png" ContentTypeGIF contentType = "image/gif" ContentTypeAVIF contentType = "image/avif" ContentTypeZIP contentType = "application/zip" )
Variables ¶
This section is empty.
Functions ¶
func ConsumeMessages ¶
func CreateReplyQueue ¶ added in v0.2.0
func DeclareQueue ¶ added in v0.2.0
func GenerateCorrelationId ¶ added in v0.2.0
func GenerateCorrelationId() string
func PublishToQueueWithResponse ¶ added in v0.3.0
func ReceiveResponse ¶ added in v0.2.0
func RegisterConsumer ¶ added in v0.2.0
Types ¶
Click to show internal directories.
Click to hide internal directories.