Module client
source code
Module for generic RPC clients.
|
ParseRequest(msg)
Parses a request message. |
source code
|
|
|
ParseResponse(msg)
Parses a response message. |
source code
|
|
|
FormatResponse(success,
result,
version=None)
Formats a response message. |
source code
|
|
|
FormatRequest(method,
args,
version=None)
Formats a request message. |
source code
|
|
|
CallRPCMethod(transport_cb,
method,
args,
version=None)
Send a RPC request via a transport and return the response. |
source code
|
|
|
KEY_METHOD = constants.LUXI_KEY_METHOD
|
|
KEY_ARGS = constants.LUXI_KEY_ARGS
|
|
KEY_SUCCESS = constants.LUXI_KEY_SUCCESS
|
|
KEY_RESULT = constants.LUXI_KEY_RESULT
|
|
KEY_VERSION = constants.LUXI_KEY_VERSION
|
Imports:
logging,
time,
t,
constants,
errors,
ProtocolError,
RequestError,
LuxiError,
serializer