Skip to content

Instantly share code, notes, and snippets.

@myklll
myklll / queue.go
Last active February 28, 2019 12:35 — forked from harrisonturton/queue.go
RabbitMQ client that automatically reconnects when the connection fails, and has a confirmed push method (i.e. the server is guaranteed to recieve the message)
package main
import (
"errors"
"github.com/streadway/amqp"
"log"
"os"
"time"
)