barrel_server_sync (barrel_server v1.0.0)

View Source

Replication endpoints: the barrel_rep_transport callbacks as HTTP, under /db/:db/_sync/*.

These handlers call barrel_docdb directly (a documented layering exception: the replication machinery is deliberately absent from the barrel module); databases still resolve through barrel_server_dbs. Wire stance: JSON, base64 for HLCs and version vectors, version tokens as-is. Every request/response carries an x-barrel-hlc header for passive clock coupling.

Summary

Functions

att_changes(Req)

att_diff(Req)

changes(Req)

delete_att(Req)

delete_local(Req)

diff(Req)

get_att(Req)

get_doc(Req)

get_local(Req)

info(Req)

put_att(Req)

put_local(Req)

put_version(Req)

sync_hlc(Req)