Documentation ¶
Overview ¶
Package ordertofulfill implements a Google Cloud Function to receive an order description via a Pub/Sub topic. The handler translates the order into a a series of fulfillment tasks descriptions stored it as as Task documents under Firestore.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OrderToFulfill ¶
func OrderToFulfill(w http.ResponseWriter, r *http.Request)
OrderToFulfill is the Cloud Function entry point. The payload of the HTTP request is an order 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.