| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.Adapter
Description
The ecosystem adapter registry: which ecosystems this build supports, independent of what an
operator configures. An unsupported ecosystem resolves to Nothing here and an unconfigured one is
never activated, so the composition root can tell a missing adapter from an unconfigured mount.
Synopsis
- data RegistryAdapter = RegistryAdapter {}
- data AdapterServe = AdapterServe {}
- adapterFor :: Ecosystem -> Maybe RegistryAdapter
The capability record
data RegistryAdapter Source #
One ecosystem's complete capability record, which the composition root wires every
consuming pipeline from. adapterFor resolves it.
Constructors
| RegistryAdapter | |
Fields
| |
data AdapterServe Source #
The ecosystem's web-facing serve surface. Both routing fields are derived from one declarative route table, so the routed surface and the documented one cannot drift apart.
Constructors
| AdapterServe | |
Fields
| |
Registration
adapterFor :: Ecosystem -> Maybe RegistryAdapter Source #
Resolve an ecosystem to its registered RegistryAdapter. Every arm is explicit, so an added
Ecosystem surfaces here as a compiler error rather than a silent Nothing.