Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Emails = pubsub.NewTopic[*EmailPreparedEvent]("emails", pubsub.TopicConfig{ DeliveryGuarantee: pubsub.AtLeastOnce, })
Functions ¶
This section is empty.
Types ¶
type EmailPreparedEvent ¶
type SendParams ¶
type SendResponse ¶
type SendResponse struct {
MessageID string `json:"message_id"` // Message ID in PubSub
}
func Send ¶
func Send(ctx context.Context, params *SendParams) (*SendResponse, error)
Send publishes an email to PubSub for further asynchronous sending using the SendGrid API. https://docs.sendgrid.com/api-reference/mail-send/mail-send
Click to show internal directories.
Click to hide internal directories.