6989a98d75
- Arkitektur: docs/auth/passwordless-architecture.md - Backend: iom/quixzoom-auth-service/ (FastAPI + Redis) - Webb: quixzoom-market-pages/se/login/ (QR-kod + polling) - App: iom/quixzoom-app/src/features/auth/ (push + deep links) Flöde: QR-kod → app-godkännande → webb-inloggad
33 lines
600 B
JavaScript
33 lines
600 B
JavaScript
'use strict'
|
|
|
|
const {
|
|
kConnected,
|
|
kPending,
|
|
kRunning,
|
|
kSize,
|
|
kFree,
|
|
kQueued
|
|
} = require('../core/symbols')
|
|
|
|
class ClientStats {
|
|
constructor (client) {
|
|
this.connected = client[kConnected]
|
|
this.pending = client[kPending]
|
|
this.running = client[kRunning]
|
|
this.size = client[kSize]
|
|
}
|
|
}
|
|
|
|
class PoolStats {
|
|
constructor (pool) {
|
|
this.connected = pool[kConnected]
|
|
this.free = pool[kFree]
|
|
this.pending = pool[kPending]
|
|
this.queued = pool[kQueued]
|
|
this.running = pool[kRunning]
|
|
this.size = pool[kSize]
|
|
}
|
|
}
|
|
|
|
module.exports = { ClientStats, PoolStats }
|