Documentation ¶
Overview ¶
Package background contains a Cloud Function to translate text. The function listens to Pub/Sub, does the translations, and stores the result in Firestore.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PubSubMessage ¶
type PubSubMessage struct {
Data []byte `json:"data"`
}
PubSubMessage is the payload of a Pub/Sub event. See https://cloud.google.com/functions/docs/calling/pubsub.
Directories ¶
Path | Synopsis |
---|---|
Command index is an HTTP app that displays all previous translations (stored in Firestore) and has a form to request new translations.
|
Command index is an HTTP app that displays all previous translations (stored in Firestore) and has a form to request new translations. |
Click to show internal directories.
Click to hide internal directories.