rabbitmq 操作库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 年之前
12345678910111213141516
  1. package rabbitmq
  2. import (
  3. "code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git/md"
  4. "fmt"
  5. )
  6. var Cfg md.MQCfg
  7. func Init(host, port, user, pwd string) {
  8. Cfg.Host = host
  9. Cfg.Port = port
  10. Cfg.User = user
  11. Cfg.Pwd = pwd
  12. Cfg.Uri = fmt.Sprintf("amqp://%s:%s@%s:%s/", user, pwd, host, port)
  13. }