mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-26 03:26:57 +08:00
25 lines
493 B
Go
25 lines
493 B
Go
package localcache
|
|
|
|
import "google.golang.org/grpc"
|
|
|
|
type GroupLocalCache struct {
|
|
cache map[string]GroupMemberIDsHash
|
|
rpc *grpc.ClientConn
|
|
}
|
|
|
|
type GroupMemberIDsHash struct {
|
|
MemberListHash uint64
|
|
UserIDs []string
|
|
}
|
|
|
|
func NewGroupMemberIDsLocalCache(rpc *grpc.ClientConn) GroupLocalCache {
|
|
return GroupLocalCache{
|
|
cache: make(map[string]GroupMemberIDsHash, 0),
|
|
rpc: rpc,
|
|
}
|
|
}
|
|
|
|
func (g *GroupMemberIDsHash) GetGroupMemberIDs(groupID string) []string {
|
|
return []string{}
|
|
}
|