feat(storage): lab5 add outbox claim batch and mark published
This commit is contained in:
@@ -49,4 +49,6 @@ type AttachmentRepository interface {
|
||||
|
||||
type OutboxRepository interface {
|
||||
Enqueue(ctx context.Context, tx Tx, e *OutboxEntry) error
|
||||
ClaimBatch(ctx context.Context, limit int) ([]OutboxEntry, error)
|
||||
MarkPublished(ctx context.Context, ids []string) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user