Skip to main content

Module local_pusher

Module local_pusher 

Source
Expand description

Local-clip ingest path.

Captures clips detected on the local clipboard, encrypts them, pushes to the relay, then write-throughs to the shared store using the relay-assigned clip ID. Mirrors the cinch push flow so the desktop and CLI converge on a single push pipeline.

The relay is the source of truth for clip IDs; we always wait for the push response before writing locally so the local row carries the same ULID the WS broadcast will emit. This avoids a duplicate row when the broadcast loops back to this device.

E2EE is mandatory: callers must supply an encryption key. With no key the push is rejected (IngestError::NoEncryptionKey); we never store plaintext in the unencrypted-clip path because the receiver-side store would reject it on the next backfill anyway.

Structs§

LocalPusher
Encrypt + push + local write-through for clips originating on this device.

Enums§

IngestError