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
IO
orSyncIO
.
Value parameters
- state
-
A
Ref
encapsulating 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]]
Ref
in Scala is similar toIORef
orMVar
in Haskell, representing mutable state within a monad.Map[MechanismId, Mechanism]
represents an immutable key-value data structure, comparable toData.Map
in Haskell.F[_]: Sync
constraint in Scala corresponds to a HaskellMonadIO
constraint, 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