项目作者: go-mq

项目描述 :
AMQP driver for mq
高级语言: Go
项目地址: git://github.com/go-mq/mq-amqp.git
创建时间: 2020-04-28T15:38:42Z
项目社区:https://github.com/go-mq/mq-amqp

开源协议:

下载


" class="reference-link">AMQP Driver for mq Go

The initial driver that came with the fork of github.com/src-d/go-queue, added to a
separate repository to be used as a go module.

Installation

go get github.com/go-mq/mq-amqp/v1

Usage

Import mq and this driver to your project, and you should be good to go

  1. import (
  2. "github.com/go-mq/mq/v2"
  3. _ "github.com/go-mq/mq-amqp/v1"
  4. )
  5. func main() {
  6. b, _ := mq.NewBroker("amqp://my-rabbitmq.example.com:5672")
  7. // now see docs of github.com/go-mq/mq for how to use it
  8. }