grpc/examples/pubsub
Yang Gao a89389283f support per call credentials in c++ 2015-05-14 11:51:07 -07:00
..
README Remove outdated protos 2015-04-15 11:34:15 -07:00
main.cc support per call credentials in c++ 2015-05-14 11:51:07 -07:00
publisher.cc clang-format c++ code under examples 2015-03-25 10:45:23 -07:00
publisher.h Splitting gRPC service class codegen into its own set of files. 2015-04-09 23:08:51 +02:00
publisher_test.cc Add a GrpcLibrary class to wrap grpc_init and grpc_shutdown and convert all the tests to init/shutdown free. 2015-04-24 13:09:40 -07:00
subscriber.cc clang-format c++ code under examples 2015-03-25 10:45:23 -07:00
subscriber.h Splitting gRPC service class codegen into its own set of files. 2015-04-09 23:08:51 +02:00
subscriber_test.cc Add a GrpcLibrary class to wrap grpc_init and grpc_shutdown and convert all the tests to init/shutdown free. 2015-04-24 13:09:40 -07:00

README

NOTE: This example does not build and is being updated.
Experimental example code, likely to change.
Users should not attempt to run this code till this warning is removed.

C++ Client implementation for Cloud Pub/Sub service
(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


To run the client:
make pubsub_client
bins/opt/pubsub_client --project_id="your project id"