rabbitmq

package
v4.7.3 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(session *RabbitMQ) error

Types

type RabbitMQ

type RabbitMQ struct {
	*amqp.Connection
	*amqp.Channel
	loggers.Logger
	// contains filtered or unexported fields
}

func Open

func Open(uri string, logger loggers.Logger) (*RabbitMQ, error)

func (*RabbitMQ) AddQueue

func (rabbitMQ *RabbitMQ) AddQueue(queue *messages.Queue) error

func (*RabbitMQ) AddQueueConsumer

func (rabbitMQ *RabbitMQ) AddQueueConsumer(consumer messages.Consumer) error

func (*RabbitMQ) AddQueueMessageBind

func (rabbitMQ *RabbitMQ) AddQueueMessageBind(queue *messages.Queue, bindingKeys []string) error

func (*RabbitMQ) AddRouter

func (rabbitMQ *RabbitMQ) AddRouter(router *messages.Router) error

func (*RabbitMQ) PublishMessages

func (rabbitMQ *RabbitMQ) PublishMessages(messages []*messages.Message) error

Jump to

Keyboard shortcuts

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