Public Member Functions | |
| __construct ($hostname, $opts) | |
| close () | |
| _simpleRequest ($method, $argument, callable $deserialize, $metadata=array()) | |
| _clientStreamRequest ($method, $arguments, callable $deserialize, $metadata=array()) | |
| _serverStreamRequest ($method, $argument, callable $deserialize, $metadata=array()) | |
| _bidiRequest ($method, callable $deserialize, $metadata=array()) | |
Base class for generated client stubs. Stub methods are expected to call _simpleRequest or _streamRequest and return the result.
| Grpc\BaseStub::__construct | ( | $hostname, | |
| $opts | |||
| ) |
| $hostname | string |
| $opts | array
|
| Grpc\BaseStub::_bidiRequest | ( | $method, | |
| callable | $deserialize, | ||
$metadata = array() |
|||
| ) |
Call a remote method with messages streaming in both directions
| string | $method | The name of the method to call |
| callable | $deserialize | A function that deserializes the responses |
| array | $metadata | A metadata map to send to the server |
| Grpc\BaseStub::_clientStreamRequest | ( | $method, | |
| $arguments, | |||
| callable | $deserialize, | ||
$metadata = array() |
|||
| ) |
Call a remote method that takes a stream of arguments and has a single output
| string | $method | The name of the method to call |
| $arguments | An array or Traversable of arguments to stream to the server | |
| callable | $deserialize | A function that deserializes the response |
| array | $metadata | A metadata map to send to the server |
| Grpc\BaseStub::_serverStreamRequest | ( | $method, | |
| $argument, | |||
| callable | $deserialize, | ||
$metadata = array() |
|||
| ) |
Call a remote method that takes a single argument and returns a stream of responses
| string | $method | The name of the method to call |
| $argument | The argument to the method | |
| callable | $deserialize | A function that deserializes the responses |
| array | $metadata | A metadata map to send to the server |
| Grpc\BaseStub::_simpleRequest | ( | $method, | |
| $argument, | |||
| callable | $deserialize, | ||
$metadata = array() |
|||
| ) |
Call a remote method that takes a single argument and has a single output
| string | $method | The name of the method to call |
| $argument | The argument to the method | |
| callable | $deserialize | A function that deserializes the response |
| array | $metadata | A metadata map to send to the server |
| Grpc\BaseStub::close | ( | ) |
Close the communication channel associated with this stub
1.8.6