Documentation ¶
Index ¶
- Variables
- func GetOptOutToken(adminID int, previous bool) string
- func GetSubscriptionUrl(adminId int, previous bool) string
- func SendAlertEmail(ctx context.Context, MailClient *sendgrid.Client, email string, message string, ...) error
- func SendBillingNotificationEmail(ctx context.Context, mailClient *sendgrid.Client, workspaceId int, ...) error
- func SendReactEmailAlert(ctx context.Context, MailClient *sendgrid.Client, email string, html string, ...) error
- func SendSessionExportEmail(ctx context.Context, mailClient *sendgrid.Client, ...) error
- type EmailType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SendAdminInviteEmailTemplateID = "d-bca4f9a932ef418a923cbd2d90d2790b" SendGridCommentEmailTemplateID = "d-af96adc0bfee455a8eff291f2bc621b0" SendGridAlertEmailTemplateID = "d-efd755d329db413082dbdf1188b6846e" SendGridRequestAccessEmailTemplateID = "d-f059960009ba4a9fb5640e98db517eef" SessionsDeletedEmailTemplateID = "d-d9e10ce22c774fc9850dd0b36ccde339" DigestEmailTemplateID = "d-5bb29dabe298425ab9422b74636516bd" BillingNotificationTemplateID = "d-9fa375187c114dc1a5b561e81fbee794" SessionExportTemplateID = "d-b359ae6783bd4e3e95d168ffcee4728d" SendGridOutboundEmail = "notifications@notify.highlight.io" SessionCommentMentionsAsmId = 20950 ErrorCommentMentionsAsmId = 20994 )
View Source
var OneTimeBillingNotifications = []EmailType{ BillingSessionOverage, BillingErrorsOverage, BillingLogsOverage, BillingTracesOverage, }
Functions ¶
func GetOptOutToken ¶
func GetSubscriptionUrl ¶
func SendAlertEmail ¶
func SendReactEmailAlert ¶
Types ¶
type EmailType ¶
type EmailType string
const ( BillingHighlightTrial7Days EmailType = "BillingHighlightTrial7Days" BillingHighlightTrialEnded EmailType = "BillingHighlightTrialEnded" BillingStripeTrial7Days EmailType = "BillingStripeTrial7Days" BillingStripeTrial3Days EmailType = "BillingStripeTrial3Days" BillingSessionUsage80Percent EmailType = "BillingSessionUsage80Percent" BillingSessionUsage100Percent EmailType = "BillingSessionUsage100Percent" BillingSessionOverage EmailType = "BillingSessionOverage" BillingErrorsUsage80Percent EmailType = "BillingErrorsUsage80Percent" BillingErrorsUsage100Percent EmailType = "BillingErrorsUsage100Percent" BillingErrorsOverage EmailType = "BillingErrorsOverage" BillingLogsUsage80Percent EmailType = "BillingLogsUsage80Percent" BillingLogsUsage100Percent EmailType = "BillingLogsUsage100Percent" BillingLogsOverage EmailType = "BillingLogsOverage" BillingTracesUsage80Percent EmailType = "BillingTracesUsage80Percent" BillingTracesUsage100Percent EmailType = "BillingTracesUsage100Percent" BillingTracesOverage EmailType = "BillingTracesOverage" BillingInvalidPayment EmailType = "BillingInvalidPayment" )
Click to show internal directories.
Click to hide internal directories.