Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data GargJob
- data Env = Env {
- _env_settings :: ~Settings
- _env_logger :: ~(Logger (GargM Env BackendInternalError))
- _env_pool :: ~(Pool Connection)
- _env_nodeStory :: ~NodeStoryEnv
- _env_manager :: ~Manager
- _env_self_url :: ~BaseUrl
- _env_scrapers :: ~ScrapersEnv
- _env_jobs :: ~(JobEnv GargJob (Seq JobLog) JobLog)
- _env_config :: ~GargConfig
- _env_mail :: ~MailConfig
- _env_nlp :: ~NLPServerMap
- data Mode
- modeToLoggingLevels :: Mode -> [LogLevel]
- mkJobHandle :: JobID 'Safe -> LoggerM (GargM Env err) JobLog -> ConcreteJobHandle err
- env_logger :: Lens' Env (Logger (GargM Env BackendInternalError))
- env_manager :: Lens' Env Manager
- env_self_url :: Lens' Env BaseUrl
- menv_firewall :: Iso' MockEnv FireWall
- dev_env_logger :: Lens' DevEnv (Logger (GargM DevEnv BackendInternalError))
- data MockEnv = MockEnv {}
- data DevEnv = DevEnv {}
- data DevJobHandle = DevJobHandle
- data ConcreteJobHandle err
Documentation
Instances
Bounded GargJob # | |
Enum GargJob # | |
Show GargJob # | |
Eq GargJob # | |
Ord GargJob # | |
Defined in Gargantext.API.Admin.EnvTypes | |
MonadJob (GargM Env err) GargJob (Seq JobLog) JobLog # | |
Env | |
|
Instances
modeToLoggingLevels :: Mode -> [LogLevel] #
Given the Mode
the server is running in, it returns the list of
allowed levels. For example for production we ignore everything which
has priority lower than "warning".
mkJobHandle :: JobID 'Safe -> LoggerM (GargM Env err) JobLog -> ConcreteJobHandle err #
Creates a new concrete JobHandle
, given its underlying JobID
and the logging function to
be used to report the status.
env_logger :: Lens' Env (Logger (GargM Env BackendInternalError)) #
env_manager :: Lens' Env Manager #
env_self_url :: Lens' Env BaseUrl #
Instances
data ConcreteJobHandle err #
The concrete JobHandle
in use with our GargM
(production) monad. Its
constructor it's not exported, to not leak internal details of its implementation.