- internal/hub/meta: pure-Go modernc.org/sqlite (no CGO -> trivial cross-compile) - schema: devices, tokens, shares, access(writable bit), snapshots, chunks(refcount) - AddSnapshot in a tx: insert + bump distinct-chunk refcounts + advance share head - single access knob = per-(device,share) writable; tokens redeem-once + expiry - tests: device lifecycle, token redeem-once/expiry, writable default+override, shares/snapshots/refcounts (dedup within + across snapshots) |
||
|---|---|---|
| .. | ||
| blobstore | ||
| meta | ||