ЛР 2: закрыть уровень 4

Завершить PostgreSQL, Redis-сессии, миграции, таймауты и диагностику. Зафиксировать собственные тесты и доказательства финального прогона: 43 PASS, 0 FAIL, 0 SKIP; 768 HTTP-запросов без ошибок. Добавить официальный отчёт с запуском, архитектурой, SQL-планами и ограничениями. PR отложен до завершения уровня 5.
This commit is contained in:
2026-10-28 13:30:26 +03:00
parent 65003b6119
commit 834876c938
288 changed files with 107634 additions and 19 deletions
+18
View File
@@ -0,0 +1,18 @@
package repository
import (
"context"
"highload/internal/model"
"time"
)
type ChatRepository interface {
CreateChat(ctx context.Context, title string, memberIDs []string) (*model.Chat, error)
GetChatByID(ctx context.Context, id string) (*model.Chat, error)
GetChatsByUserID(ctx context.Context, userID string, limit int, after *ChatPosition) ([]*model.Chat, error)
}
type ChatPosition struct {
CreatedAt time.Time
ID string
}