ganeti

Safe HaskellSafe-Infered

Ganeti.Query.Server

Description

Implementation of the Ganeti Query2 server.

Synopsis

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

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.