grpc/examples/pubsub
Craig Tiller 5589c35fed Compile fix 2015-03-03 10:04:51 -08:00
..
README Update README 2015-02-25 11:45:05 -08:00
empty.proto Add missing new-lines at end of file 2015-02-18 09:25:21 -08:00
label.proto Add missing new-lines at end of file 2015-02-18 09:25:21 -08:00
main.cc Compile fix 2015-03-03 10:04:51 -08:00
publisher.cc Add missing new-lines at end of file 2015-02-18 09:23:38 -08:00
publisher.h Guard headers tool. 2015-03-01 06:18:14 +01:00
publisher_test.cc Merge github.com:grpc/grpc into credit 2015-03-02 08:51:52 -08:00
pubsub.proto clean up some internal path and names 2015-02-20 13:04:52 -08:00
subscriber.cc Add missing new-lines at end of file 2015-02-18 09:23:38 -08:00
subscriber.h Guard headers tool. 2015-03-01 06:18:14 +01:00
subscriber_test.cc Merge github.com:grpc/grpc into credit 2015-03-02 08:51:52 -08:00

README

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"