()
| 123 | } |
| 124 | |
| 125 | func GetAllActiveUsers() []*UserRecord { |
| 126 | userManagerMu.RLock() |
| 127 | defer userManagerMu.RUnlock() |
| 128 | |
| 129 | ret := []*UserRecord{} |
| 130 | for _, userPtr := range userManager.Users { |
| 131 | if !userPtr.isLinkDead { |
| 132 | ret = append(ret, userPtr) |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | return ret |
| 137 | } |
| 138 | |
| 139 | func GetOnlineUserIds() []int { |
| 140 | userManagerMu.RLock() |
no outgoing calls
no test coverage detected