org.sigilaris.core.assembly.BlueprintDsl
High-level DSL for mounting blueprints at specific paths.
Provides convenient methods for mounting module blueprints and composed blueprints at paths, with automatic evidence requirements:
Single-name mounting:
Multi-segment path mounting:
All methods require evidence that:
Attributes
-
See also
-
-
Example
-
import org.sigilaris.core.assembly.BlueprintDsl.*
val module = mount("accounts" -> accountsBlueprint) val composed =
mountComposed("app" -> composedBlueprint)
-
Source
-
BlueprintDsl.scala
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
-
Self type
-
Members list
Mount a module blueprint at a single-segment path.
Mount a module blueprint at a single-segment path.
Type parameters
-
F
-
the effect type
-
MName
-
the module name
-
Name
-
the mount path (singleton string literal)
-
Needs
-
the needed schema tuple
-
Owns
-
the owned schema tuple
-
Txs
-
the transaction types tuple
Value parameters
-
binding
-
tuple of (path name, blueprint)
Attributes
-
Returns
-
a mounted StateModule with StateReducer
-
Source
-
BlueprintDsl.scala
Mount a module blueprint at a multi-segment path.
Mount a module blueprint at a multi-segment path.
Type parameters
-
F
-
the effect type
-
MName
-
the module name
-
Needs
-
the needed schema tuple
-
Owns
-
the owned schema tuple
-
Path
-
the mount path tuple (e.g., ("app", "v1"))
-
Txs
-
the transaction types tuple
Value parameters
-
binding
-
tuple of (path tuple, blueprint)
Attributes
-
Returns
-
a mounted StateModule with StateReducer
-
Source
-
BlueprintDsl.scala
Mount a composed blueprint at a single-segment path.
Mount a composed blueprint at a single-segment path.
Composed blueprints require transactions with ModuleRoutedTx for routing.
Type parameters
-
F
-
the effect type
-
MName
-
the module name
-
Name
-
the mount path (singleton string literal)
-
Needs
-
the needed schema tuple
-
Owns
-
the owned schema tuple
-
Txs
-
the transaction types tuple
Value parameters
-
binding
-
tuple of (path name, composed blueprint)
Attributes
-
Returns
-
a mounted StateModule with RoutedStateReducer
-
Source
-
BlueprintDsl.scala
Mount a composed blueprint at a multi-segment path.
Mount a composed blueprint at a multi-segment path.
Composed blueprints require transactions with ModuleRoutedTx for routing.
Type parameters
-
F
-
the effect type
-
MName
-
the module name
-
Needs
-
the needed schema tuple
-
Owns
-
the owned schema tuple
-
Path
-
the mount path tuple (e.g., ("app", "v1"))
-
Txs
-
the transaction types tuple
Value parameters
-
binding
-
tuple of (path tuple, composed blueprint)
Attributes
-
Returns
-
a mounted StateModule with RoutedStateReducer
-
Source
-
BlueprintDsl.scala