Prepare verified laboratory 6 implementation and evidence

This commit is contained in:
rey
2026-11-17 17:32:06 +03:00
parent 470d9d6f1e
commit 7d56e52fd0
335 changed files with 31206 additions and 72 deletions
+28
View File
@@ -0,0 +1,28 @@
package port
import (
"backend/internal/domain/model"
"context"
"github.com/google/uuid"
"io"
"time"
)
type PipelineStore interface {
PendingJobs(context.Context) ([]model.Job, error)
Published(context.Context, uuid.UUID) error
AcquireJob(context.Context, model.Job, uuid.UUID, time.Duration) (model.Job, model.Attachment, bool, error)
CompleteJob(context.Context, model.Job, uuid.UUID, []model.Variant) (bool, error)
RetryJob(context.Context, model.Job, uuid.UUID, string, time.Duration, bool) error
ReplayJob(context.Context, uuid.UUID) (bool, error)
AdvancePipeline(context.Context, uuid.UUID) (bool, error)
StagingCleanup(context.Context) ([]model.Attachment, error)
StagingCleaned(context.Context, uuid.UUID) error
}
type Transformer interface {
Transform(context.Context, io.Reader) ([]ProcessedVariant, error)
}
type ProcessedVariant struct {
Metadata model.Variant
Bytes []byte
}