Documentation ¶
Overview ¶
Package gcf_notify Google cloud function is triggered by message published to pubsub topic `deltaanalyticstopic` by gcf_analytics cloud function. Uses google cloud secret manager grabbing sendgrid api key to send email message decoded from base64 encoding per JSON message schema received from pubsub. Only sends from verified sender. Sends to env email address for now, in future version will be able to send to email address specified in request Depends on gcf_analytics cloud function deployed and having run successfully. See System Diagram for more details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessagePublishedData ¶
type MessagePublishedData struct {
Message PubSubMessage
}
MessagePublishedData contains the full Pub/Sub message See the documentation for more details: https://cloud.google.com/eventarc/docs/cloudevents#pubsub
type PubSubMessage ¶
type PubSubMessage struct {
Data []byte `json:"data"`
}
PubSubMessage is the payload of a Pub/Sub event. See the documentation for more details: https://cloud.google.com/pubsub/docs/reference/rest/v1/PubsubMessage