chirpnest/mq.go
2019-06-28 16:13:25 +08:00

8 lines
177 B
Go

package main
func (c *MQClient) Open() error {
conn, err := amqp.Dial("amqp://" + c.User + ":" + c.Password + "@" + c.Host + "/" + c.Path)
c.Connection = conn
return null
}