mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-04-28 14:29:19 +08:00
etcd conf
This commit is contained in:
@@ -15,6 +15,7 @@ import (
|
||||
"Open_IM/internal/api/user"
|
||||
"Open_IM/pkg/common/config"
|
||||
"Open_IM/pkg/common/log"
|
||||
"Open_IM/pkg/grpc-etcdv3/getcdv3"
|
||||
"Open_IM/pkg/utils"
|
||||
"flag"
|
||||
"fmt"
|
||||
@@ -222,7 +223,7 @@ func main() {
|
||||
initGroup.POST("/set_client_config", clientInit.SetClientInitConfig)
|
||||
initGroup.POST("/get_client_config", clientInit.GetClientInitConfig)
|
||||
}
|
||||
go config.RegisterConf()
|
||||
go getcdv3.RegisterConf()
|
||||
go apiThird.MinioInit()
|
||||
defaultPorts := config.Config.Api.GinPort
|
||||
ginPort := flag.Int("port", defaultPorts[0], "get ginServerPort from cmd,default 10002 as port")
|
||||
|
||||
@@ -152,7 +152,7 @@ func registerConf(key, conf string) {
|
||||
|
||||
}
|
||||
|
||||
func init() {
|
||||
func RegisterConf() {
|
||||
bytes, err := yaml.Marshal(config.Config)
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
|
||||
Reference in New Issue
Block a user