Rmqconn
RabbitMQ Reconnection client
Install / Use
/learn @sbabiv/RmqconnREADME
rmqconn
RabbitMQ Reconnection for Golang
Wrapper over amqp.Connection and amqp.Dial. Allowing to do a reconnection when the connection is broken before forcing the call to the Close () method to be closed
Use the default method func Dial (url string) (Conner, error) to connect to the server.
You can implement your connection function and pass it to rmqconn.Open("", customFunc)
Getting started
1. install
go get -u github.com/sbabiv/rmqconn
2. use it
conn, err := rmqconn.Open("amqp://usr:pwd@host:5672", rmqconn.Dial)
defer conn.Close()
if err != nil {
return
}
if conn.IsConnected() {
ch, err := conn.GetChannel()
if err != nil {
return
}
defer ch.Close()
err = ch.Publish("", "queueName", false, false, amqp.Publishing{
Body: []byte("hello wolrd"),
})
}
Licence
Author
Babiv Sergey
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
