Module sync_impl

Module sync_impl 

Source
Expand description

Database query implementation for sync logs and remote replication state.

Traits§

AllocateNextRemoteRangeIpcClientExt
Auto-generated IPC client extension for this method.
DeleteLocalTokenIpcClientExt
Auto-generated IPC client extension for this method.
GetLocalIdRangeIpcClientExt
Auto-generated IPC client extension for this method.
GetLocalTokensIpcClientExt
Auto-generated IPC client extension for this method.
GetSyncChunkIpcClientExt
Auto-generated IPC client extension for this method.
IsTokenSpentIpcClientExt
Auto-generated IPC client extension for this method.
SaveLocalIdRangeIpcClientExt
Auto-generated IPC client extension for this method.
SaveLocalTokenIpcClientExt
Auto-generated IPC client extension for this method.
SaveSyncChunkIpcClientExt
Auto-generated IPC client extension for this method.
SpendTokenIpcClientExt
Auto-generated IPC client extension for this method.

Functions§

allocate_next_remote_range
[SERVER-SIDE] Allocates a block of 10,000 unique IDs for the given graph.
delete_local_token
[CLIENT-SIDE] Deletes a spent local token from the user’s database.
get_local_id_range
[CLIENT-SIDE] Retrieves the reserved local ID range for a graph from the user’s database.
get_local_tokens
[CLIENT-SIDE] Fetches all unspent local blind tokens from the user’s database.
get_sync_chunk
[SERVER-SIDE] Retrieves an encrypted graph/node chunk payload from the server.
is_token_spent
[SERVER-SIDE] Checks if a blind token’s serial hex is marked as spent.
save_local_id_range
[CLIENT-SIDE] Saves the reserved local ID range for a graph in the user’s database.
save_local_token
[CLIENT-SIDE] Stores a newly finalized blind token locally in the user’s database.
save_sync_chunk
[SERVER-SIDE] Stores an encrypted graph/node chunk payload on the server.
spend_token
[SERVER-SIDE] Marks a blind token as spent to prevent double-spending.