lab5: очереди и асинхронная обработка изображений

Durable staging handoff, transactional outbox, at-least-once worker with lease fencing, idempotent versioned pipeline, three variants, operator tooling, contract tests and evidence. Includes the review fixes: reprocess source selection and failure settlement, replay guards, stale-job retirement, PNG structural/raster validation, migration rollback safety and audit events.
This commit is contained in:
Vladislav Kunetskiy
2026-10-31 14:34:24 +03:00
parent 6c5ba026f1
commit 01b885e846
99 changed files with 10164 additions and 1452 deletions
+5 -1
View File
@@ -56,7 +56,11 @@ type SessionService interface {
type AttachmentService interface {
Upload(ctx context.Context, input attachmentService.UploadInput) (domain.Attachment, error)
Get(ctx context.Context, callerID, id uuid.UUID) (domain.Attachment, error)
Open(ctx context.Context, callerID, id uuid.UUID) (domain.Attachment, io.ReadCloser, error)
OpenVariant(
ctx context.Context,
callerID, id uuid.UUID,
name domain.VariantName,
) (domain.Attachment, domain.Variant, io.ReadCloser, error)
Presign(ctx context.Context, request domain.PresignRequest) (domain.PresignResult, error)
Complete(ctx context.Context, ownerID, id uuid.UUID, sha256 string) (domain.Attachment, error)
}