Safe Haskell | Safe-Infered |
---|
Implementation of the Ganeti Query2 server.
- type ConfigReader = IO (Result ConfigData)
- handleClassicQuery :: ConfigData -> ItemType -> [Either String Integer] -> [String] -> Maybe FilterConstructor -> Bool -> IO (GenericResult GanetiException JSValue)
- handleCallWrapper :: Result ConfigData -> LuxiOp -> IO (ErrorResult JSValue)
- handleCall :: ConfigData -> LuxiOp -> IO (ErrorResult JSValue)
- handleClientMsg :: Client -> ConfigReader -> LuxiOp -> IO Bool
- handleClient :: Client -> ConfigReader -> IO Bool
- clientLoop :: Client -> ConfigReader -> IO ()
- mainLoop :: ConfigReader -> Socket -> IO ()
- prepQueryD :: Maybe FilePath -> IO (FilePath, Socket)
- runQueryD :: (FilePath, Socket) -> ConfigReader -> IO ()
Documentation
type ConfigReader = IO (Result ConfigData)Source
A type for functions that can return the configuration when executed.
handleClassicQuery :: ConfigData -> ItemType -> [Either String Integer] -> [String] -> Maybe FilterConstructor -> Bool -> IO (GenericResult GanetiException JSValue)Source
handleCallWrapper :: Result ConfigData -> LuxiOp -> IO (ErrorResult JSValue)Source
handleCall :: ConfigData -> LuxiOp -> IO (ErrorResult JSValue)Source
handleClientMsg :: Client -> ConfigReader -> LuxiOp -> IO BoolSource
handleClient :: Client -> ConfigReader -> IO BoolSource
clientLoop :: Client -> ConfigReader -> IO ()Source
mainLoop :: ConfigReader -> Socket -> IO ()Source
prepQueryD :: Maybe FilePath -> IO (FilePath, Socket)Source
Function that prepares the server socket.
runQueryD :: (FilePath, Socket) -> ConfigReader -> IO ()Source
Main function that runs the query endpoint.