rabbitmq 操作库
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
289 B

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