feat: add details demo
ci-api / test (push) Has been cancelled

This commit is contained in:
Nuxgrid
2026-07-28 14:44:48 +02:00
parent 65ca24b6eb
commit 4b3a5720a3
8 changed files with 143 additions and 38 deletions
+12
View File
@@ -65,6 +65,18 @@ func (m *MemStore) CountActive() (int, error) {
return n, nil
}
func (m *MemStore) GetDemoByUsername(username string) (Demo, error) {
m.mu.Lock()
defer m.mu.Unlock()
for _, demo := range m.items {
if demo.Username == username {
return demo, nil
}
}
return Demo{}, ErrNotFound
}
// MemPool : Pool en mémoire (dev/tests), PoolSizePerService slots par service.
type MemPool struct {
mu sync.Mutex