rabbitmq

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RabbitMQ

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

RabbitMQ represents RabbitMQ implementation

func NewRabbitMQ

func NewRabbitMQ(conn *amqp.Connection) *RabbitMQ

NewRabbitMQ creates new RabbitMQ connection

func (*RabbitMQ) Close

func (s *RabbitMQ) Close() error

Close closes the RabbitMQ service

func (*RabbitMQ) ConsumeMessages

func (s *RabbitMQ) ConsumeMessages(queue string, handler func([]byte) error) error

ConsumeMessages consumes messages from RabbitMQ

func (*RabbitMQ) IsConnected added in v0.1.2

func (s *RabbitMQ) IsConnected() bool

IsConnected checks if the RabbitMQ connection is valid

func (*RabbitMQ) PublishMessage

func (s *RabbitMQ) PublishMessage(exchange, routingKey string, body []byte) error

PublishMessage publishes message to RabbitMQ

Jump to

Keyboard shortcuts

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