|
|
@ -2,7 +2,6 @@ package msg
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"context"
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
|
|
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
|
|
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/cache"
|
|
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/cache"
|
|
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/controller"
|
|
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/controller"
|
|
|
@ -25,12 +24,12 @@ type msgServer struct {
|
|
|
|
RegisterCenter discoveryregistry.SvcDiscoveryRegistry
|
|
|
|
RegisterCenter discoveryregistry.SvcDiscoveryRegistry
|
|
|
|
MsgDatabase controller.MsgDatabase
|
|
|
|
MsgDatabase controller.MsgDatabase
|
|
|
|
ExtendMsgDatabase controller.ExtendMsgDatabase
|
|
|
|
ExtendMsgDatabase controller.ExtendMsgDatabase
|
|
|
|
// Group *check.GroupChecker
|
|
|
|
Group *rpcclient.GroupClient
|
|
|
|
User *rpcclient.UserClient
|
|
|
|
User *rpcclient.UserClient
|
|
|
|
Conversation *rpcclient.ConversationClient
|
|
|
|
Conversation *rpcclient.ConversationClient
|
|
|
|
friend *rpcclient.FriendClient
|
|
|
|
friend *rpcclient.FriendClient
|
|
|
|
*localcache.GroupLocalCache
|
|
|
|
|
|
|
|
black *rpcclient.BlackClient
|
|
|
|
black *rpcclient.BlackClient
|
|
|
|
|
|
|
|
GroupLocalCache *localcache.GroupLocalCache
|
|
|
|
MessageLocker MessageLocker
|
|
|
|
MessageLocker MessageLocker
|
|
|
|
Handlers MessageInterceptorChain
|
|
|
|
Handlers MessageInterceptorChain
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -67,7 +66,7 @@ func Start(client discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) e
|
|
|
|
s := &msgServer{
|
|
|
|
s := &msgServer{
|
|
|
|
Conversation: rpcclient.NewConversationClient(client),
|
|
|
|
Conversation: rpcclient.NewConversationClient(client),
|
|
|
|
User: rpcclient.NewUserClient(client),
|
|
|
|
User: rpcclient.NewUserClient(client),
|
|
|
|
// Group: check.NewGroupChecker(client),
|
|
|
|
Group: rpcclient.NewGroupClient(client),
|
|
|
|
MsgDatabase: msgDatabase,
|
|
|
|
MsgDatabase: msgDatabase,
|
|
|
|
ExtendMsgDatabase: extendMsgDatabase,
|
|
|
|
ExtendMsgDatabase: extendMsgDatabase,
|
|
|
|
RegisterCenter: client,
|
|
|
|
RegisterCenter: client,
|
|
|
|