Skip to content

Instantly share code, notes, and snippets.

@ATmega8
ATmega8 / consumer.go
Created October 20, 2018 08:18 — forked from simpleton/consumer.go
Golang auto-reconnect rabbitmq consumer
package base
import (
"errors"
"fmt"
"github.com/manucorporat/try"
"github.com/simpleton/beego"
"github.com/streadway/amqp"
"math/rand"
"model/helper"