Documentation ¶
Index ¶
- type Cache
- func (c *Cache) FriendCacheIsEmpty() bool
- func (c *Cache) GetAllFriends() map[uint32]*entity.Friend
- func (c *Cache) GetAllGroupsInfo() map[uint32]*entity.Group
- func (c *Cache) GetFriend(uin uint32) *entity.Friend
- func (c *Cache) GetGroupInfo(groupUin uint32) *entity.Group
- func (c *Cache) GetGroupMember(uin, groupUin uint32) *entity.GroupMember
- func (c *Cache) GetGroupMembers(groupUin uint32) map[uint32]*entity.GroupMember
- func (c *Cache) GetUid(uin uint32, groupUin ...uint32) string
- func (c *Cache) GetUin(uid string, groupUin ...uint32) (uin uint32)
- func (c *Cache) GroupInfoCacheIsEmpty() bool
- func (c *Cache) GroupMemberCacheIsEmpty(groupUin uint32) bool
- func (c *Cache) GroupMembersCacheIsEmpty() bool
- func (c *Cache) RefreshAll(friendCache map[uint32]*entity.Friend, groupCache map[uint32]*entity.Group, ...)
- func (c *Cache) RefreshAllFriend(friendCache map[uint32]*entity.Friend)
- func (c *Cache) RefreshAllGroup(groupCache map[uint32]*entity.Group)
- func (c *Cache) RefreshAllGroupMembers(groupMemberCache map[uint32]map[uint32]*entity.GroupMember)
- func (c *Cache) RefreshFriend(friend *entity.Friend)
- func (c *Cache) RefreshGroup(group *entity.Group)
- func (c *Cache) RefreshGroupMember(groupUin uint32, groupMember *entity.GroupMember)
- func (c *Cache) RefreshGroupMembers(groupUin uint32, groupMembers map[uint32]*entity.GroupMember)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) FriendCacheIsEmpty ¶
FriendCacheIsEmpty 好友信息缓存是否为空
func (*Cache) GetAllFriends ¶ added in v0.0.11
GetAllFriends 获取所有好友信息
func (*Cache) GetAllGroupsInfo ¶
GetAllGroupsInfo 获取所有群信息
func (*Cache) GetGroupInfo ¶
GetGroupInfo 获取群信息
func (*Cache) GetGroupMember ¶
func (c *Cache) GetGroupMember(uin, groupUin uint32) *entity.GroupMember
GetGroupMember 获取群成员信息
func (*Cache) GetGroupMembers ¶
func (c *Cache) GetGroupMembers(groupUin uint32) map[uint32]*entity.GroupMember
GetGroupMembers 获取指定群所有群成员信息
func (*Cache) GroupInfoCacheIsEmpty ¶
GroupInfoCacheIsEmpty 群信息缓存是否为空
func (*Cache) GroupMemberCacheIsEmpty ¶
GroupMemberCacheIsEmpty 指定群的群成员缓存是否为空
func (*Cache) GroupMembersCacheIsEmpty ¶
GroupMembersCacheIsEmpty 群成员缓存是否为空
func (*Cache) RefreshAll ¶
func (*Cache) RefreshAllFriend ¶
RefreshAllFriend 刷新所有好友缓存
func (*Cache) RefreshAllGroup ¶
RefreshAllGroup 刷新所有群的群信息缓存
func (*Cache) RefreshAllGroupMembers ¶
func (c *Cache) RefreshAllGroupMembers(groupMemberCache map[uint32]map[uint32]*entity.GroupMember)
RefreshAllGroupMembers 刷新所有群的群员缓存
func (*Cache) RefreshFriend ¶
RefreshFriend 刷新一个好友的缓存
func (*Cache) RefreshGroup ¶
RefreshGroup 刷新一个群的群信息缓存
func (*Cache) RefreshGroupMember ¶
func (c *Cache) RefreshGroupMember(groupUin uint32, groupMember *entity.GroupMember)
RefreshGroupMember 刷新指定群的一个群成员缓存
func (*Cache) RefreshGroupMembers ¶
func (c *Cache) RefreshGroupMembers(groupUin uint32, groupMembers map[uint32]*entity.GroupMember)
RefreshGroupMembers 刷新一个群内的所有群成员缓存
Click to show internal directories.
Click to hide internal directories.