rmq

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MailExchange = "mail-go-exchange"
	MailQueue    = "mail-go-queue"
	MaxTry       = 10
	Delay        = 100 * time.Millisecond
)

Variables

This section is empty.

Functions

func Close

func Close() error

func Consume

func Consume(
	exchangeName string,
	queueName string,
	f func(d rabbitmq.Delivery) error,
	sleep *time.Duration,
)

func GetRMQInstance

func GetRMQInstance() *rabbitmq.Conn

func Publish

func Publish(exchangeName string, queueName string, action string, body string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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