Methods
makeSyncCall
STATIC
makeSyncCall(string $package, string $call_name, string $request, string $response, double $deadline = null)
Makes a synchronous RPC call.
Parameters
Name | Description |
---|---|
|
Package to call |
|
Specific RPC call to make |
|
Request proto, serialised to string |
|
Response proto string to populate |
|
Optional deadline for the RPC call |
setApiProxy
STATIC
setApiProxy(resource $apiProxy)
Set the API Proxy instance used to make the RPC call. Allows for mocking in tests.
Parameters
Name | Description |
---|---|
|
API Proxy instance to use |