ecluse
Safe HaskellNone
LanguageGHC2021

Ecluse.Composition.MirrorState

Description

Bind durable mirror inventories and source-only retention to each configured mirror target.

Synopsis

Documentation

data MirrorStateBinding Source #

Foreground and worker roles share one target identity and durable state port.

Constructors

MirrorStateBinding 

Fields

newMirrorStates :: Maybe AwsEndpoint -> Deadlines -> AppConfig -> [VettedMount] -> Limits -> CacheConfig -> LocalPool -> IO (Map Ecosystem MirrorStateBinding) Source #

Reuse the metadata pool's aggregate bounds. Unconfigured mounts allocate no state client or retention.

bindMirrorStates :: Map Ecosystem MirrorStateBinding -> [MountBinding] -> [MountBinding] Source #

Attach state only to the matching mount. First-party handling remains in the read pipeline.