This commit is contained in:
shoopea 2019-06-28 16:13:56 +08:00
parent e5ce715442
commit 2a26d2f067

4
mq.go
View File

@ -1,5 +1,9 @@
package main
import (
"github.com/streadway/amqp"
)
func (c *MQClient) Open() error {
conn, err := amqp.Dial("amqp://" + c.User + ":" + c.Password + "@" + c.Host + "/" + c.Path)
c.Connection = conn