test
This commit is contained in:
parent
e5ce715442
commit
2a26d2f067
4
mq.go
4
mq.go
@ -1,5 +1,9 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/streadway/amqp"
|
||||||
|
)
|
||||||
|
|
||||||
func (c *MQClient) Open() error {
|
func (c *MQClient) Open() error {
|
||||||
conn, err := amqp.Dial("amqp://" + c.User + ":" + c.Password + "@" + c.Host + "/" + c.Path)
|
conn, err := amqp.Dial("amqp://" + c.User + ":" + c.Password + "@" + c.Host + "/" + c.Path)
|
||||||
c.Connection = conn
|
c.Connection = conn
|
||||||
|
Loading…
Reference in New Issue
Block a user