ModuleFactory

org.sigilaris.core.application.module.runtime.StateModule.ModuleFactory
See theModuleFactory companion object
trait ModuleFactory[F[_], Owns <: Tuple, Txs <: Tuple]

Factory for building state modules at arbitrary paths from a fixed blueprint.

Type parameters

F

the effect type

Owns

the owned schema tuple

Txs

the transaction types tuple

Attributes

Companion
object
Source
StateModule.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def build[Path <: Tuple](using monad: Monad[F], prefixFreePath: PrefixFreePath[Path, Owns], nodeStore: NodeStore[F], schemaMapper: SchemaMapper[F, Path, Owns]): StateModule[F, Path, Owns, EmptyTuple, Txs, StateReducer[F, Path, Owns, EmptyTuple]]

Builds a state module mounted at the given path.

Builds a state module mounted at the given path.

Type parameters

Path

the mount path

Attributes

Returns

a mounted state module

Source
StateModule.scala