feat: process attachments through durable versioned jobs

This commit is contained in:
Vladislav Agapov
2026-10-29 16:56:06 +03:00
parent 276dbdad8a
commit e35c8f0b75
235 changed files with 17028 additions and 44 deletions
+17
View File
@@ -0,0 +1,17 @@
package service
import (
"context"
"github.com/google/uuid"
"gitea.privcloud.tech/vlad_marlo/mtusi2026lab5/internal/model/dto"
)
// ProfileCache stores immutable public account profiles; misses fall back to PostgreSQL.
type ProfileCache interface {
// GetProfile returns a cached profile or a miss, including on backend failure.
GetProfile(context.Context, uuid.UUID) (dto.UserDTO, bool)
// PutProfile stores a bounded-lifetime profile on a best-effort basis.
PutProfile(context.Context, dto.UserDTO)
}