gcf_notify

package module
v0.0.0-...-e575cc6 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 12 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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