GrpcTransport
class GrpcTransport extends BaseStub implements TransportInterface (View source)
A gRPC based transport implementation.
Traits
Provides helper methods for gRPC support.
ServiceAddressTrait deprecated
Provides helper methods for service address handling.
Methods
__construct(string $hostname, array $opts, Channel $channel = null, array $interceptors = [])
No description
static GrpcTransport
build(string $apiEndpoint, array $config = [])
Builds a GrpcTransport.
PromiseInterface
Details
static array
validate(array $arr, array $requiredKeys)
No description
static array
validateNotNull(array $arr, array $requiredKeys)
No description
__construct(string $hostname, array $opts, Channel $channel = null, array $interceptors = [])
No description
static GrpcTransport
build(string $apiEndpoint, array $config = [])
Builds a GrpcTransport.
BidiStream
startBidiStreamingCall(Call $call, array $options)
Starts a bidi streaming call.
ClientStream
startClientStreamingCall(Call $call, array $options)
Starts a client streaming call.
ServerStream
startServerStreamingCall(Call $call, array $options)
Starts a server streaming call.
PromiseInterface
startUnaryCall(Call $call, array $options)
Returns a promise used to execute network requests.