mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
add etcd
This commit is contained in:
parent
1c8d2bbacd
commit
6bc6cf898f
@ -28,7 +28,7 @@ const (
|
||||
zookeeperConst = "zookeeper"
|
||||
kubenetesConst = "k8s"
|
||||
directConst = "direct"
|
||||
etcd = "etcd"
|
||||
etcdConst = "etcd"
|
||||
)
|
||||
|
||||
// NewDiscoveryRegister creates a new service discovery and registry client based on the provided environment type.
|
||||
@ -46,7 +46,7 @@ func NewDiscoveryRegister(zookeeperConfig *config.ZooKeeper, share *config.Share
|
||||
)
|
||||
case kubenetesConst:
|
||||
return kubernetes.NewK8sDiscoveryRegister(share.RpcRegisterName.MessageGateway)
|
||||
case etcd:
|
||||
case etcdConst:
|
||||
return getcd.NewSvcDiscoveryRegistry("openim", []string{"http://localhost:2379"})
|
||||
case directConst:
|
||||
//return direct.NewConnDirect(config)
|
||||
|
Loading…
x
Reference in New Issue
Block a user