ЛР 5 — асинхронная обработка и версии pipeline

This commit is contained in:
2026-11-16 02:38:13 +03:00
parent 276dbdad8a
commit 1f535f1b5b
163 changed files with 17194 additions and 24 deletions
+13
View File
@@ -0,0 +1,13 @@
package repository
import (
"context"
"highload/internal/model"
"time"
)
type SessionRepository interface {
Create(ctx context.Context, tokenHash []byte, userID string, sessionTTL time.Duration) (*model.Session, error)
GetSessionByTokenHash(ctx context.Context, tokenHash []byte) (*model.Session, error)
RevokeSession(ctx context.Context, tokenHash []byte) (int, error)
}