You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/pkg/common/db/localcache/localCache.go

25 lines
493 B

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{}
}