Closed Gozala closed 1 week ago
It got really messy, but here is a high level overview of the changes
differential.js
differentiate
PullSource
SyncSource
SyncTarget
sync
Sync.Service
POST
accept: application/okra-sync
It got really messy, but here is a high level overview of the changes
differential.js
exportsdifferentiate
module that calculates a delta between local tree and remote tree that implementsPullSource
interface.SyncSource
andSyncTarget
classes that adapt underlying tree reader and pull source to arguments expected by okra'ssync
function.Sync.Service
that exposes synchronization protocol forPOST
requests withaccept: application/okra-sync
header.sync
protocol or legacy HTTP interface, using both would lead to errors as mutating db mid-sync will lead to problems.