| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.CachedDocument
Description
Opaque serving documents with ecosystem-specific inject/project pairs. The pipeline carries source snapshot scope separately and delegates wire access to adapters.
Synopsis
- data CachedDoc
- weighCachedDoc :: CachedDoc -> Int64
- estimateValueBytes :: Value -> Int64
- npmCached :: (Value -> CachedDoc, CachedDoc -> Maybe Value)
- pypiSimpleCached :: (SimpleDocument -> CachedDoc, CachedDoc -> Maybe SimpleDocument)
- npmPacked :: (PackedPackument -> CachedDoc, CachedDoc -> Maybe PackedPackument)
- npmRendered :: (RenderPlan -> CachedDoc, CachedDoc -> Maybe RenderPlan)
- pypiPacked :: (PackedSimple -> CachedDoc, CachedDoc -> Maybe PackedSimple)
- pypiRendered :: (RenderPlan -> CachedDoc, CachedDoc -> Maybe RenderPlan)
- cargoCached :: (CargoDocument -> CachedDoc, CachedDoc -> Maybe CargoDocument)
- cargoPacked :: (PackedIndex -> CachedDoc, CachedDoc -> Maybe PackedIndex)
- cargoRendered :: (LinePlan -> CachedDoc, CachedDoc -> Maybe LinePlan)
- rubyGemsCached :: (GemDocument -> CachedDoc, CachedDoc -> Maybe GemDocument)
Documentation
Serving documents held by the pipeline and permitted caches. Derived Show and Eq support debugging and tests, not wire projection.
weighCachedDoc :: CachedDoc -> Int64 Source #
Estimate compact cache units without measuring retained heap. Packed storage estimates use the consumer's expansion factor.
estimateValueBytes :: Value -> Int64 Source #
Estimate accounting bytes without encoding. This is neither measured heap nor exact JSON length.
npmCached :: (Value -> CachedDoc, CachedDoc -> Maybe Value) Source #
Explicit cases require updates for new ecosystems. npm projects packed or rendered forms to trees, refusing missing strings or tables.
pypiSimpleCached :: (SimpleDocument -> CachedDoc, CachedDoc -> Maybe SimpleDocument) Source #
PyPI's boundary pair, spelled out arm by arm for the same reason as npmCached.
npm's packed full reads and their renders
npmPacked :: (PackedPackument -> CachedDoc, CachedDoc -> Maybe PackedPackument) Source #
npm's packed full read, and its packed form when the document is one.
npmRendered :: (RenderPlan -> CachedDoc, CachedDoc -> Maybe RenderPlan) Source #
An assembled npm listing that renders from packed releases, and its plan when the document is one.
PyPI's packed full reads and their renders
pypiPacked :: (PackedSimple -> CachedDoc, CachedDoc -> Maybe PackedSimple) Source #
PyPI's packed full-read document, available without materialising its files.
pypiRendered :: (RenderPlan -> CachedDoc, CachedDoc -> Maybe RenderPlan) Source #
An assembled PyPI listing that renders directly from packed files and source tables.
Cargo's native records, packed full reads and their renders
cargoCached :: (CargoDocument -> CachedDoc, CachedDoc -> Maybe CargoDocument) Source #
Cargo's native source records, preserving physical source coordinates on tree projection.
cargoPacked :: (PackedIndex -> CachedDoc, CachedDoc -> Maybe PackedIndex) Source #
Cargo's packed full source remains available without materialising native records.
cargoRendered :: (LinePlan -> CachedDoc, CachedDoc -> Maybe LinePlan) Source #
A native output plan keeps ordered records over their separate source tables.
RubyGems' native rows
rubyGemsCached :: (GemDocument -> CachedDoc, CachedDoc -> Maybe GemDocument) Source #
RubyGems retains native artifact rows without reconstructing installation metadata from policy facts.