| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Composition.MirrorState.Internal
Description
Allocate state for vetted mirror capabilities, with storage construction supplied by the application edge.
Synopsis
- data MirrorStateBinding = MirrorStateBinding {}
- newMirrorStatesWith :: (MirrorStateFormat -> Text -> Text -> StateTarget -> IO MirrorState) -> AppConfig -> [VettedMount] -> Limits -> CacheConfig -> LocalPool -> IO (Map Ecosystem MirrorStateBinding)
Documentation
data MirrorStateBinding Source #
Foreground and worker roles share one target identity and durable state port.
Constructors
| MirrorStateBinding | |
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.