Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data ActionContext = ActionContext {}
- type ActionContextM a = ReaderT ActionContext IO a
- runContextM :: ActionContextM a -> Service -> IO a
- newtype BackgroundContext = BackgroundContext {}
- type BackgroundContextM a = ReaderT BackgroundContext IO a
- withBackgroundContextM :: BackgroundContextM a -> ActionContextM a
- data SolrIndexingContext = SolrIndexingContext {
- slcLogs :: !Logs
- slcHTTPClient :: !HTTPClient
- slcSolr :: !Solr
- slcDB :: !DBConn
- type SolrIndexingContextM a = ReaderT SolrIndexingContext IO a
- mkSolrIndexingContext :: ActionContext -> SolrIndexingContext
Documentation
data ActionContext Source #
This is the context for when you don't have an identity, but you have a fully initialized, "command line" access to the system.
ActionContext | |
|
type ActionContextM a = ReaderT ActionContext IO a Source #
runContextM :: ActionContextM a -> Service -> IO a Source #
Perform an atomic action without an identity with a guaranteed database
connection and a fixed version of now
.
newtype BackgroundContext Source #
A ActionContext with no Identity.
type BackgroundContextM a = ReaderT BackgroundContext IO a Source #
data SolrIndexingContext Source #
A ActionContext with no Identity, for running Solr indexing.
SolrIndexingContext | |
|
type SolrIndexingContextM a = ReaderT SolrIndexingContext IO a Source #
mkSolrIndexingContext :: ActionContext -> SolrIndexingContext Source #
Build a simpler SolrIndexingContext from a complete ActionContext