Skip to content
forked from prep/pubsubc

Google PubSub topic and subscription creator

License

Notifications You must be signed in to change notification settings

floatschedule/pubsubc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Pub/Sub Emulator Config

Creates topics and subscriptions for Google Pub/Sub local emulation. The code expects an environment variable named PUBSUB_PROJECT1 containing a comma separated string. The first item in the the string is the project name and subsequent items are the topics. Each topic is a colon delimited string where the first item is the topic name and subsequent items are subscriptions to that topic.

Example:

PUBSUB_PROJECT1=project-name,topic1,topic2:subscription1:subscription2

Push Subscriptions

The subscription string can be used to create a push subscription by appending the push endpoint to it separated by a +.

Example:

PUBSUB_PROJECT1=project-name,topic:push-subscription+endpoint

TODO:

  • Push subscriptions currently only support HTTP; it would be good to support HTTP and HTTPS
  • Push subscription Ack Deadline is explicitly set to 60s; should be configurable

About

Google PubSub topic and subscription creator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%