MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / InsertLineageOutbox

Method InsertLineageOutbox

database/repository.go:190–190  ·  view source on GitHub ↗

Inserts outbox entry within a transaction

(ctx context.Context, outbox *model.LineageOutbox)

Source from the content-addressed store, hash-verified

188 // Outbox methods for atomic lineage processing
189 InsertLineageOutboxInTx(ctx context.Context, tx *sql.Tx, outbox *model.LineageOutbox) error // Inserts outbox entry within a transaction
190 InsertLineageOutbox(ctx context.Context, outbox *model.LineageOutbox) error // Inserts outbox entry directly (for shadow work)
191 ClaimPendingOutboxEntries(ctx context.Context, batchSize int, lockDuration time.Duration) ([]model.LineageOutbox, error) // Claims pending entries for processing
192 MarkOutboxCompleted(ctx context.Context, id int64) error // Marks an outbox entry as completed
193 MarkOutboxFailed(ctx context.Context, id int64, errMsg string) error // Marks an outbox entry as failed

Callers 1

queueShadowWorkMethod · 0.65

Implementers 2

Datasourcedatabase/db.go
MockDataSourcedatabase/mocks/repo_mocks.go

Calls

no outgoing calls

Tested by

no test coverage detected