amqp

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2021 License: BSL-1.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToAmqp

func ConnectToAmqp(addr string, queueName string) (*amqplib.Connection, *amqplib.Channel, amqplib.Queue)

ConnectToAmqp connects to the AMQP server and creates a queue.

func ConsumeForever

func ConsumeForever(channel *amqplib.Channel, queue amqplib.Queue, callback func(delivery amqplib.Delivery))

ConsumeForever registers a consumer on the specified queue and run forever. The callback function must perform `delivery.Ack()` to acknowledge deliveries.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL