| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Mirror.State.Format
Description
How durable mirror state stores, weighs and rechecks one format's read data.
Each publishing adapter declares a MirrorStateFormat, and composition binds it to the mount's
state store, mirror view and worker, so mirror state names no format.
Synopsis
- data MirrorStateFormat = MirrorStateFormat {
- msfKind :: Text
- msfEncodeSource :: MirrorReadData -> Maybe Value
- msfDecodeSource :: Object -> Parser MirrorReadData
- msfDecodeCharge :: Value -> Integer
- msfForceSource :: MirrorReadData -> ()
- msfEnvelope :: ProjectEnvelope
- msfFragmentShell :: PackageDetails -> Integer
- msfSourceWeight :: MirrorReadData -> Integer
- msfCompanions :: CompanionRequirement
- data ProjectEnvelope = ProjectEnvelope {
- envelopeSplit :: MirrorReadData -> (Object, MirrorReadData)
- envelopeCheck :: Object -> PackageDetails -> MirrorReadData -> Either Text ()
- noProjectEnvelope :: Text -> ProjectEnvelope
Documentation
data MirrorStateFormat Source #
One format's operations on its own MirrorReadData constructor. Another format's read data yields the neutral result each field names.
Constructors
| MirrorStateFormat | |
Fields
| |
data ProjectEnvelope Source #
Source fields a record keeps once per project rather than in each fragment.
Constructors
| ProjectEnvelope | |
Fields
| |
noProjectEnvelope :: Text -> ProjectEnvelope Source #
A format without project-wide fields. A stored envelope refuses the record, naming the format.