Skip to content

A Google Cloud Pub/Sub ambassador container for publishing.

License

Notifications You must be signed in to change notification settings

amaloy/ampub-gcppubsub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ampub-gcppubsub

A Google Cloud Pub/Sub publisher for AmPub. Envisioned for use as an ambassador/adaptor container.

Message Format

The AmPub API provides a topic string, request body bytes, and optionally a key string.

  • topic string = The Pub/Sub topic
  • request body bytes = The message data
  • key string = A message attribute where key={key string}

Environment Variables

  • AMPUB_PUBSUB_PROJECTID - required, the project that the Pub/Sub client will be scoped to
  • AMPUB_PUBSUB_TIMEOUTMS - optional, the timeout to use when communicating with Pub/Sub, default is 10000 ms
  • AMPUB_PUBSUB_TOPICS - optional, comma-separated list of topics to ensure exist on startup
  • All variables used by the Google Cloud Pub/Sub Go client are also valid

Docker Example

docker build -t amaloy/ampub-gcppubsub .

docker run -e AMPUB_PUBSUB_PROJECTID=myproject -e AMPUB_PUBSUB_TOPICS=mytopic amaloy/ampub-gcppubsub

About

A Google Cloud Pub/Sub ambassador container for publishing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages