rabbitmq

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2021 License: Apache-2.0 Imports: 3 Imported by: 7

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, exchangetype string, routingKey string, header amqp.Table) (<-chan amqp.Delivery, *amqp.Channel, error)

func NewQueueConsumerQos added in v0.1.5

func NewQueueConsumerQos(connection *amqp.Connection, queueName string, exchange, exchangetype string, routingKey string, header amqp.Table) (<-chan amqp.Delivery, *amqp.Channel, error)

func NewQueuePublisher

func NewQueuePublisher(connection *amqp.Connection, exchange, exchanetype 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