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

Method GetFriend

client/internal/cache/cache.go:49–52  ·  view source on GitHub ↗

GetFriend 获取好友信息

(uin uint32)

Source from the content-addressed store, hash-verified

47
48// GetFriend 获取好友信息
49func (c *Cache) GetFriend(uin uint32) *entity.User {
50 v, _ := getCacheOf[entity.User](c, uin)
51 return v
52}
53
54// GetAllFriends 获取所有好友信息
55func (c *Cache) GetAllFriends() map[uint32]*entity.User {

Callers 1

GetCachedFriendInfoMethod · 0.80

Calls 1

getCacheOfFunction · 0.85

Tested by

no test coverage detected