ordertofulfill

package module
v0.0.0-...-3d84a2e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2023 License: MIT-0 Imports: 13 Imported by: 0

README

The Order to Fulfillment Topic Consumer

The Order to Fulfillment Firestore Consumer is a Cloud Function that receives Pub/Sub push messages from the Order Firestore Trigger Function when an order is recorded.

This function translates each of the order items into one to many fulfillment tasks, storing the tasks in
an tasks Firestore document collection (i.e. a different collection to that used for the carts and orders).

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL