mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.3 KiB
31 lines
1.3 KiB
10 years ago
|
C++ Client implementation for Cloud Pub/Sub service
|
||
10 years ago
|
(https://developers.google.com/apis-explorer/#p/pubsub/v1beta1/).
|
||
|
|
||
|
"Google Cloud Pub/Sub" API needs to be enabled at
|
||
|
https://console.developers.google.com/project to open the access for a client.
|
||
|
Select the project name, select the "APIs" under "APIs & auth", and turn
|
||
|
on "Google Cloud Pub/Sub" API.
|
||
|
|
||
|
To run the client from Google Compute Engine (GCE), the GCE instance needs to
|
||
|
be created with scope "https://www.googleapis.com/auth/cloud-platform" as below:
|
||
|
|
||
|
gcloud compute instances create instance-name
|
||
|
--image debian-7 --scopes https://www.googleapis.com/auth/cloud-platform
|
||
10 years ago
|
|
||
|
Google TLS cert is required to run the client, which can be downloaded from
|
||
|
Chrome browser.
|
||
10 years ago
|
|
||
|
To run the client from GCE:
|
||
10 years ago
|
make pubsub_client
|
||
|
GRPC_DEFAULT_SSL_ROOTS_FILE_PATH="Google TLS cert" bins/opt/pubsub_client
|
||
|
--project_id="your project id"
|
||
10 years ago
|
|
||
|
A service account credential is required to run the client from other
|
||
|
environments, which can be generated as a JSON key file from
|
||
|
https://console.developers.google.com/project/. To run the client with a service
|
||
|
account credential:
|
||
|
|
||
10 years ago
|
GRPC_DEFAULT_SSL_ROOTS_FILE_PATH="Google TLS cert" bins/opt/pubsub_client
|
||
10 years ago
|
--project_id="your project id"
|
||
10 years ago
|
--service_account_key_file="absolute path to the JSON key file"
|