ecluse
Safe HaskellNone
LanguageGHC2021

Ecluse.Composition.MirrorState.Internal

Description

Allocate state for vetted mirror capabilities, with storage construction supplied by the application edge.

Synopsis

Documentation

data MirrorStateBinding Source #

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

Constructors

MirrorStateBinding 

Fields

newMirrorStatesWith :: (MirrorStateFormat -> Text -> Text -> StateTarget -> IO MirrorState) -> AppConfig -> [VettedMount] -> Limits -> CacheConfig -> LocalPool -> IO (Map Ecosystem MirrorStateBinding) Source #

Allocate only declared durable mirrors, each bound to its adapter's state format. The caller owns the shared retention pool and storage constructor.