feat(storage): lab5 add CreateInTx for transactional outbox support

This commit is contained in:
Голиков Maximillian Антон
2026-11-07 07:45:56 +03:00
parent ab35077afd
commit 0fddc697f1
2 changed files with 18 additions and 0 deletions
+1
View File
@@ -44,6 +44,7 @@ type AttachmentRepository interface {
ListStalePending(ctx context.Context, olderThan time.Time, limit int) ([]Attachment, error)
ExistingKeys(ctx context.Context, keys []string) ([]string, error)
DeletePending(ctx context.Context, id string) error
CreateInTx(ctx context.Context, tx Tx, a *Attachment) error
}
type OutboxRepository interface {