rabbitmq 操作库
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }