Safe Haskell | None |
---|---|
Language | Haskell98 |
- commands :: [Cmd (IO ())]
- serverOpts :: [Opt]
- serverDefCfg :: Opts String
- clientOpts :: [Opt]
- clientDefCfg :: Opts String
- clientCmd :: Cmd CommandAction -> Cmd (IO ())
- sendCmd :: String -> Args -> IO ()
- initLog :: Opts String -> IO (String -> IO (), ([String] -> IO ()) -> IO (), IO ())
- runServer :: Opts String -> (CommandOptions -> IO ()) -> IO ()
- processRequest :: CommandOptions -> (Notification -> IO ()) -> Request -> IO Result
- processClient :: String -> IO ByteString -> (ByteString -> IO ()) -> CommandOptions -> IO ()
- withCache :: Opts String -> a -> (FilePath -> IO a) -> IO a
- writeCache :: Opts String -> (String -> IO ()) -> Database -> IO ()
- readCache :: Opts String -> (String -> IO ()) -> (FilePath -> ErrorT String IO Structured) -> IO (Maybe Database)
Documentation
serverOpts :: [Opt] Source
Server options
serverDefCfg :: Opts String Source
Server default options
clientOpts :: [Opt] Source
Client options
clientDefCfg :: Opts String Source
Client default options
initLog :: Opts String -> IO (String -> IO (), ([String] -> IO ()) -> IO (), IO ()) Source
Inits log chan and returns functions (print message, wait channel)
processRequest :: CommandOptions -> (Notification -> IO ()) -> Request -> IO Result Source
Process request, notifications can be sent during processing
processClient :: String -> IO ByteString -> (ByteString -> IO ()) -> CommandOptions -> IO () Source
Process client, listen for requests and process them