-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
introduce gRPC support for pub/sub #210
Conversation
0c65e5e
to
33bbfa9
Compare
fba150b
to
591a32c
Compare
return $response->serialize(new PhpArray()); | ||
} | ||
|
||
return []; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -18,6 +18,8 @@ | |||
namespace Google\Cloud\PubSub; | |||
|
|||
use Google\Cloud\ClientTrait; | |||
use Google\Cloud\Exception\GoogleException; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -119,35 +99,24 @@ class RequestWrapper | |||
* @type int $retries Number of retries for a failed request. | |||
* **Defaults to** `3`. | |||
* @type array $scopes Scopes to be used for the request. | |||
* @type boolean $shouldSignRequest Whether to enable request signing. | |||
* @type bool $shouldSignRequest Whether to enable request signing. | |||
* } | |||
*/ | |||
public function __construct(array $config = []) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
* {@see Google\Cloud\ServiceBuilder::__construct()} for the available options. | ||
* @param array $config [optional] { | ||
* Configuration options. See | ||
* {@see Google\Cloud\ServiceBuilder::__construct()} for the other available options. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Great work pal! |
Updated! PTAL @jdpedrie |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@dwsupplee feel free to merge once Travis is done. I probably will be afk before CI is finished. :) |
With this PR we now officially have gRPC support for pub/sub!
Perform the following installation:
... and the pub/sub client should automatically detect you are capable of using gRPC and enable that as the transport mechanism.
You can also toggle between REST/gRPC by providing the
transport
option when building your pub/sub client.