endless.core.interpret
Members list
Type members
Classlikes
Interprets an algebra Alg
expressed using Entity
in context F
with EntityT
Interprets an algebra Alg
expressed using Entity
in context F
with EntityT
Type parameters
- Alg
-
entity algebra
- E
-
event
- F
-
effect type
- S
-
state
Attributes
- Returns
-
interpreted entity algebra in context
F
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
BehaviorInterpreter.type
Interprets an algebra Alg
expressed using DurableEntity
in context F
with DurableEntityT
Interprets an algebra Alg
expressed using DurableEntity
in context F
with DurableEntityT
Type parameters
- Alg
-
entity algebra
- F
-
effect type
- S
-
state
Attributes
- Returns
-
interpreted entity algebra in context
F
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DurableEntityT.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object EntityT.type
EntityT[F, S, E, A]`` is data type implementing the
Entity[F, S, E]state reader and event writer abilities. It is a monad transformer used as an interpreter for functional chains involving calls to
Entityread
and write
, turning them into a result value of F[Folded[E, A]]
. Folded[E, A]
is either an error or a list of events bundled together with a result value.
EntityT[F, S, E, A]`` is data type implementing the
Entity[F, S, E]state reader and event writer abilities. It is a monad transformer used as an interpreter for functional chains involving calls to
Entityread
and write
, turning them into a result value of F[Folded[E, A]]
. Folded[E, A]
is either an error or a list of events bundled together with a result value.
EntityT
interpretation runs with an instance of EventsFolder[S, E]
which is a tuple of current state of type S
together with event application function EventApplier[S, E]
. Interpretation essentially accumulates the written events into a Chain[E]
and applies these events to initial state whenever a read
is required.
Type parameters
- A
-
value
- E
-
event
- F
-
context
- S
-
state
Value parameters
- runAcc
-
Event folding function
Attributes
- Companion
- object
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
Attributes
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass AnyShow all
Interpret an algebra RepositoryAlg
expressed using Sharding
in context F
, materializing the distributed repository
Interpret an algebra RepositoryAlg
expressed using Sharding
in context F
, materializing the distributed repository
Type parameters
- Alg
-
entity algebra
- F
-
effect type
- ID
-
entity ID
- RepositoryAlg
-
repository algebra
Attributes
- Returns
-
interpreted repository algebra in context
F
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Interprets a function F[Unit]
describing a side-effect using Effector
in context F
Interprets a function F[Unit]
describing a side-effect using Effector
in context F
Type parameters
- Alg
-
entity algebra
- F
-
effect type
- RepositoryAlg
-
repository algebra
- S
-
state
Attributes
- Returns
-
interpreted side-effect function in context
F
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type