Implement lab 3 level 4 failover and idempotency

This commit is contained in:
2026-10-29 23:35:04 +03:00
parent 0ab3a341aa
commit a2cb1ad2ae
338 changed files with 37821 additions and 22 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
}