This commit is contained in:
wangchuxiao
2023-02-01 11:23:01 +08:00
parent e0d05e1fa8
commit 40470bc320
8 changed files with 231 additions and 18 deletions
+24
View File
@@ -0,0 +1,24 @@
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{}
}