GrpcTransport
class GrpcTransport extends BaseStub implements TransportInterface
A gRPC based transport implementation.
Traits
Provides helper methods for gRPC support.
Provides helper methods for service address handling.
Methods
__construct(string $hostname, array $opts, Channel $channel = null, array $interceptors = [])
No description
static GrpcTransport
build(string $serviceAddress, array $config = [])
Builds a GrpcTransport.
_simpleRequest($method, $argument, $deserialize, array $metadata = [], array $options = [])
No description
PromiseInterface
Details
in ValidationTrait at line 41
static array
validate(array $arr, array $requiredKeys)
in ValidationTrait at line 51
static array
validateNotNull(array $arr, array $requiredKeys)
at line 74
__construct(string $hostname, array $opts, Channel $channel = null, array $interceptors = [])
at line 97
static GrpcTransport
build(string $serviceAddress, array $config = [])
Builds a GrpcTransport.
at line 134
BidiStream
startBidiStreamingCall(Call $call, array $options)
Starts a bidi streaming call.
at line 150
ClientStream
startClientStreamingCall(Call $call, array $options)
Starts a client streaming call.
at line 166
ServerStream
startServerStreamingCall(Call $call, array $options)
Starts a server streaming call.
at line 201
protected
_simpleRequest($method, $argument, $deserialize, array $metadata = [], array $options = [])
at line 228
PromiseInterface
startUnaryCall(Call $call, array $options)
Returns a promise used to execute network requests.