|
- package rabbitmq
-
- import (
- "code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git/md"
- "fmt"
- )
-
- var Cfg md.MQCfg
-
- func Init(host, port, user, pwd string) {
- Cfg.Host = host
- Cfg.Port = port
- Cfg.User = user
- Cfg.Pwd = pwd
- Cfg.Uri = fmt.Sprintf("amqp://%s:%s@%s:%s/", user, pwd, host, port)
- }
|