()
| 14 | const onlineActivityThreshold = 45 * time.Second |
| 15 | |
| 16 | func (wg *WireGuard) getInterfaceCounters() (int64, int64, error) { |
| 17 | wg.mu.RLock() |
| 18 | mgr := wg.manager |
| 19 | wg.mu.RUnlock() |
| 20 | |
| 21 | if mgr == nil { |
| 22 | return 0, 0, errWireGuardManagerNotInitialized |
| 23 | } |
| 24 | |
| 25 | return mgr.GetInterfaceStats() |
| 26 | } |
| 27 | |
| 28 | func (wg *WireGuard) handleUserStats(ctx context.Context, request *common.StatRequest) (*common.StatResponse, error) { |
| 29 | var keys []string |
no test coverage detected