core.repositories
Members list
Packages
Type members
Classlikes
An in-memory implementation of ReactionRepository for testing and local use.
An in-memory implementation of ReactionRepository for testing and local use.
Type parameters
- F
-
Effect type, such as
IOorSyncIO.
Value parameters
- state
-
A
Refencapsulating the mutable map of reactions.
Attributes
- Source
- InMemoryReactionRepository.scala
- Supertypes
InMemoryMechanismRepository is analogous to a Haskell stateful data structure that holds a Map within a monadic context. This class abstracts over an effect type F, which can be seen as a Haskell monad that supports side effects and state management.
InMemoryMechanismRepository is analogous to a Haskell stateful data structure that holds a Map within a monadic context. This class abstracts over an effect type F, which can be seen as a Haskell monad that supports side effects and state management.
Type parameters
- F
-
The abstract effect type, which could be likened to an effectful monad in Haskell (e.g.,
IO,StateT). type MechanismRepository m = StateT (Map MechanismId Mechanism) m
Value parameters
- state
-
Ref[F, Map[MechanismId, Mechanism]]
Refin Scala is similar toIOReforMVarin Haskell, representing mutable state within a monad.Map[MechanismId, Mechanism]represents an immutable key-value data structure, comparable toData.Mapin Haskell.F[_]: Syncconstraint in Scala corresponds to a HaskellMonadIOconstraint, enabling us to manage effects in a functional way.
Attributes
- Source
- InMemoryMechanismRepository.scala
- Supertypes
ADDITIONAL MODULE
ADDITIONAL MODULE
Neo4jReactionRepository provides a direct interface to the Chemist Pre-processor for managing reactions. This implementation bypasses any caching or additional service logic, directly interacting with the Neo4j-backed Chemist service through HTTP requests.
Value parameters
- client
-
The HttpClient used to communicate with the Chemist service.
Attributes
- Source
- Neo4jReactionRepository.scala
- Supertypes