Documentation
¶
Overview ¶
Package taskdistrib implements a Google Cloud Function to receive fulfillment task descriptions via a Pub/Sub topic. The handler maps the task description to the identity of another Cloud Function that has the know how to execute the task, then invokes that function.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TaskDistributor ¶
func TaskDistributor(w http.ResponseWriter, r *http.Request)
TaskDistributor is the Cloud Function entry point. The payload of the Pub/Sub push request is a task description expressed as a base64 encoded Protocol Buffer message wrapped in a JSON envelop.
See https://cloud.google.com/pubsub/docs/push for documentation of the request body JSON content.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.