Popularity
1.2
Growing
Activity
0.0
Declining
13
1
0

Programming language: Go
License: MIT License
Tags: Messaging    
Latest version: v1.1.0

rmqconn alternatives and similar packages

Based on the "Messaging" category.
Alternatively, view rmqconn alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of rmqconn or a related project?

Add another 'Messaging' Package

README

Build Status Coverage Status Go Report Card GoDoc Mentioned in Awesome Go

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:[email protected]: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

MIT

Author

Babiv Sergey


*Note that all licence references and agreements mentioned in the rmqconn README section above are relevant to that project's source code only.