MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / GetAllFriends

Method GetAllFriends

client/internal/cache/cache.go:55–62  ·  view source on GitHub ↗

GetAllFriends 获取所有好友信息

()

Source from the content-addressed store, hash-verified

53
54// GetAllFriends 获取所有好友信息
55func (c *Cache) GetAllFriends() map[uint32]*entity.User {
56 friends := make(map[uint32]*entity.User, 64)
57 rangeCacheOf[entity.User](c, func(k uint32, friend *entity.User) bool {
58 friends[k] = friend
59 return true
60 })
61 return friends
62}
63
64// GetGroupInfo 获取群信息
65func (c *Cache) GetGroupInfo(groupUin uint32) *entity.Group {

Callers 1

Calls 1

rangeCacheOfFunction · 0.85

Tested by

no test coverage detected