Safe Haskell | None |
---|
Used for management of applications.
- data AppManager
- data Action
- perform :: AppManager -> AppId -> Action -> IO ()
- reloadAppList :: AppManager -> Map Appname (FilePath, EpochTime) -> IO ()
- addApp :: AppManager -> FilePath -> IO ()
- terminateApp :: AppManager -> Appname -> IO ()
- initialize :: (LogMessage -> IO ()) -> AppStartConfig -> IO AppManager
Types
data AppManager Source
Actions
perform :: AppManager -> AppId -> Action -> IO ()Source
reloadAppList :: AppManager -> Map Appname (FilePath, EpochTime) -> IO ()Source
Reset which apps are running.
- Any app not listed here that is currently running will be terminated.
- Any app listed here that is currently running will be reloaded.
- Any app listed here that is not currently running will be started.
addApp :: AppManager -> FilePath -> IO ()Source
terminateApp :: AppManager -> Appname -> IO ()Source
Initialize
initialize :: (LogMessage -> IO ()) -> AppStartConfig -> IO AppManagerSource