|
@@ -5,6 +5,7 @@ package main
|
|
|
|
|
|
import (
|
|
|
"app.yhyue.com/moapp/MessageCenter/entity"
|
|
|
+ _ "app.yhyue.com/moapp/MessageCenter/rpc/db"
|
|
|
"app.yhyue.com/moapp/MessageCenter/rpc/internal/config"
|
|
|
"app.yhyue.com/moapp/MessageCenter/rpc/internal/server"
|
|
|
"app.yhyue.com/moapp/MessageCenter/rpc/internal/svc"
|
|
@@ -45,6 +46,7 @@ func main() {
|
|
|
func init() {
|
|
|
conf.MustLoad(*configFile, &config.ConfigJson)
|
|
|
var err error
|
|
|
+
|
|
|
//连接etcd
|
|
|
entity.EtcdCli, err = clientv3.New(clientv3.Config{
|
|
|
Endpoints: config.ConfigJson.Etcd.Hosts,
|
|
@@ -78,7 +80,6 @@ func init() {
|
|
|
//}
|
|
|
//fmt.Println(config.ConfigJson.DataSource + "链接成功")
|
|
|
|
|
|
-
|
|
|
//entity.Mysql, err = sql.Open("mysql", config.ConfigJson.Mysql)
|
|
|
//if err != nil {
|
|
|
// panic(err.Error())
|