rabbitmq

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInstance

func NewInstance(rabbitHost string, rabbitPort string, messagebrokeruser string, messagebrokerpassword string) (*amqp.Connection, error)

func NewQueueConsumer

func NewQueueConsumer(connection *amqp.Connection, queueName string, exchange string, routingKey string) (<-chan amqp.Delivery, error)

func NewQueuePublisher

func NewQueuePublisher(connection *amqp.Connection, exchange string) (*amqp.Channel, error)

func PublishMessage

func PublishMessage(channel *amqp.Channel, exchange string, routingKey string, header amqp.Table, message []byte) error

Types

type RMQChannel

type RMQChannel struct {
	*amqp.Channel
}

type RMQConnection

type RMQConnection struct {
	*amqp.Connection
}

Jump to

Keyboard shortcuts

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