Реализовать наблюдаемость мессенджера для ЛР 6 на четыре

This commit is contained in:
2026-11-18 13:24:20 +03:00
parent 470d9d6f1e
commit c236059a83
184 changed files with 20450 additions and 54 deletions
+17
View File
@@ -0,0 +1,17 @@
package repository
import (
"context"
"highload/internal/model"
"time"
)
type MessageRepository interface {
CreateMessage(ctx context.Context, chatID, senderID, text, key string, attachmentIDs []string) (*model.Message, error)
GetMessagesByChatID(ctx context.Context, chatID string, limit int, after *MessagePosition) ([]*model.Message, error)
}
type MessagePosition struct {
CreatedAt time.Time
ID string
}