rabbitmq

package
v0.0.0-...-d39f515 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue struct {
	MaxPriority uint8
	Name        QueueName
	Ttl         time.Duration
}

type QueueName

type QueueName string

type RabbitMq

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

func New

func New() *RabbitMq

func (*RabbitMq) Connection

func (r *RabbitMq) Connection() *amqp.Connection

func (*RabbitMq) Consume

func (r *RabbitMq) Consume(queues []string, deliveryChannel chan<- amqp.Delivery) error

func (*RabbitMq) ConsumeChannel

func (r *RabbitMq) ConsumeChannel() *amqp.Channel

func (*RabbitMq) DeclareQueues

func (r *RabbitMq) DeclareQueues(queues []*Queue) error

func (*RabbitMq) Publish

func (r *RabbitMq) Publish(exchange string, key string, mandatory bool, immediate bool, msg amqp.Publishing) error

func (*RabbitMq) PublishChannel

func (r *RabbitMq) PublishChannel() *amqp.Channel

Jump to

Keyboard shortcuts

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