Skip to content

syohex/gcp-pubsub-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GCP pub/sub sample using REST API in Go

GCP pub/sub publisher and subscriber sample programs. These use REST API and don't use pub/sub client library

Publish

cd cmd/publisher
go run publisher.go \
  -topic=topic_name \
  -account=your_service_account_json_path \
  -attr='{"name": "Tom"}' \
  'hello world'

Subscribe

cd cmd/subscriber
go run subscriber.go \
  -sub=subscription_name \
  -account=your_service_account_json_path \
  -ack

About

Sample program of GCP pub/sub client with REST API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages