| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Ganeti.THH.PyRPC
Description
Combines the construction of RPC server components and their Python stubs.
Synopsis
- genPyUDSRpcStub :: String -> String -> [Name] -> Q Doc
- genPyUDSRpcStubStr :: String -> String -> [Name] -> Q Exp
Documentation
Arguments
| :: String | the name of the class to be generated |
| -> String | the name of the constant from |
| -> [Name] | names of functions to include |
| -> Q Doc |
Takes a list of function names and creates a RPC handler that delegates calls to them, as well as writes out the corresponding Python stub.
See mkRpcM for the requirements on the passed functions and the returned
expression.
Arguments
| :: String | the name of the class to be generated |
| -> String | the constant in |
| -> [Name] | functions to include |
| -> Q Exp |