Documentation
¶
Overview ¶
Package meta is the module root. It embeds the authoritative JSON Schema files so the validation tooling is self-contained while the files under schema/ remain the public contract.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SchemaFS embed.FS
SchemaFS holds the JSON Schema files (schema/*.json) that define every entity's on-disk shape. metacheck validates against these embedded copies.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
metabuild
command
Command metabuild compiles the data/ tree into a SQLite artifact.
|
Command metabuild compiles the data/ tree into a SQLite artifact. |
|
metacheck
command
Command metacheck validates the entire data/ tree: schema, id/shard agreement, referential integrity, uniqueness, chapter ordering, and series positions.
|
Command metacheck validates the entire data/ tree: schema, id/shard agreement, referential integrity, uniqueness, chapter ordering, and series positions. |
|
metafmt
command
Command metafmt enforces canonical JSON formatting for data/**/*.json: keys sorted alphabetically (recursively), 2-space indent, LF, a single trailing newline, UTF-8 with no HTML escaping.
|
Command metafmt enforces canonical JSON formatting for data/**/*.json: keys sorted alphabetically (recursively), 2-space indent, LF, a single trailing newline, UTF-8 with no HTML escaping. |
|
metaimport
command
Command metaimport ingests an external audiobook-library export into the data/ tree as work/recording/person/series records, deduplicating against the existing catalog so a contributor's upload becomes a reviewable diff.
|
Command metaimport ingests an external audiobook-library export into the data/ tree as work/recording/person/series records, deduplicating against the existing catalog so a contributor's upload becomes a reviewable diff. |
|
metaserve
command
Command metaserve is the read-only HTTP API over the compiled metadata artifact.
|
Command metaserve is the read-only HTTP API over the compiled metadata artifact. |
|
internal
|
|
|
build
Package build compiles a validated Catalog into a read-only SQLite artifact (see SchemaVersion) with an FTS5 search index and covering indexes for ASIN and ISBN lookup.
|
Package build compiles a validated Catalog into a read-only SQLite artifact (see SchemaVersion) with an FTS5 search index and covering indexes for ASIN and ISBN lookup. |
|
canonical
Package canonical produces the one true on-disk JSON form for data files: object keys sorted alphabetically (recursively), 2-space indent, LF line endings, a single trailing newline, UTF-8 with no HTML escaping.
|
Package canonical produces the one true on-disk JSON form for data files: object keys sorted alphabetically (recursively), 2-space indent, LF line endings, a single trailing newline, UTF-8 with no HTML escaping. |
|
check
Package check loads the data/ tree, validates every record against its JSON Schema, and enforces the cross-record rules (location, id/shard agreement, referential integrity, global uniqueness, chapter ordering, series positions).
|
Package check loads the data/ tree, validates every record against its JSON Schema, and enforces the cross-record rules (location, id/shard agreement, referential integrity, global uniqueness, chapter ordering, series positions). |
|
importer
Package importer converts external audiobook-library exports into audiosilo-meta records on disk.
|
Package importer converts external audiobook-library exports into audiosilo-meta records on disk. |
|
model
Package model defines the on-disk entity types and the rules that tie a file to its slug, shard, and location.
|
Package model defines the on-disk entity types and the rules that tie a file to its slug, shard, and location. |
|
serve
Package serve is the read-only HTTP API over the compiled metadata artifact.
|
Package serve is the read-only HTTP API over the compiled metadata artifact. |
Click to show internal directories.
Click to hide internal directories.