blobs

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package blobs stores PDFs on the filesystem, named by the SHA-256 of their contents.

Content addressing buys deduplication for free — the same paper fetched from two OA locations is written once — and makes backup a plain directory copy. The database stores the hash only; no binary ever enters SQLite.

Layout is sharded to keep directory sizes sane:

blobs/ab/cd/abcd...pdf

Writes are atomic: temp file, fsync, rename. A half-written PDF sitting under a hash that does not match its contents is the one failure this package must never produce.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL