eqmrmq

package module
v0.1.0-b Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

README

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsumeMessages

func ConsumeMessages(ch *amqp.Channel, queueName string, handler func(*amqp.Channel, amqp.Delivery) error) error

func ReplyToMessage

func ReplyToMessage(ch *amqp.Channel, d amqp.Delivery, replyData []byte) error

func SendMessage

func SendMessage(msgParams Message) error

func SendToQueueWithResponse

func SendToQueueWithResponse(queueName, message string, ch *amqp.Channel) ([]byte, error)

Types

type Message

type Message struct {
	QueueName     string
	Message       string
	CorrelationId string
	ReplyQueue    string
	Ch            *amqp.Channel
}

type QueueConfig

type QueueConfig struct {
	Name       string
	Durable    bool
	AutoDelete bool
	Exclusive  bool
	NoWait     bool
	Args       amqp.Table
}

type RMQService

type RMQService struct {
	// contains filtered or unexported fields
}

func NewRabbitMQService

func NewRabbitMQService(conn *amqp.Connection, queueConfigs []QueueConfig) (*RMQService, error)

Jump to

Keyboard shortcuts

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