Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data AppState
- getConfig :: AppState -> IO AppConfig
- getDbStructure :: AppState -> IO (Maybe DbStructure)
- getIsWorkerOn :: AppState -> IO Bool
- getJsonDbS :: AppState -> IO ByteString
- getMainThreadId :: AppState -> ThreadId
- getPgVersion :: AppState -> IO PgVersion
- getPool :: AppState -> Pool
- getTime :: AppState -> IO UTCTime
- init :: AppConfig -> IO AppState
- initWithPool :: Pool -> AppConfig -> IO AppState
- logWithZTime :: AppState -> Text -> IO ()
- putConfig :: AppState -> AppConfig -> IO ()
- putDbStructure :: AppState -> DbStructure -> IO ()
- putIsWorkerOn :: AppState -> Bool -> IO ()
- putJsonDbS :: AppState -> ByteString -> IO ()
- putPgVersion :: AppState -> PgVersion -> IO ()
- releasePool :: AppState -> IO ()
- signalListener :: AppState -> IO ()
- waitListener :: AppState -> IO ()
Documentation
getDbStructure :: AppState -> IO (Maybe DbStructure) Source #
getJsonDbS :: AppState -> IO ByteString Source #
getMainThreadId :: AppState -> ThreadId Source #
putDbStructure :: AppState -> DbStructure -> IO () Source #
putJsonDbS :: AppState -> ByteString -> IO () Source #
releasePool :: AppState -> IO () Source #
signalListener :: AppState -> IO () Source #
waitListener :: AppState -> IO () Source #
As this IO action uses takeMVar
internally, it will only return once
stateListener
has been set using signalListener
. This is currently used
to syncronize workers.