Documentation ¶
Index ¶
- Constants
- Variables
- type EmailBatchingJob
- type Service
- func (es *Service) AddNotificationEmailToBatch(user *model.User, post *model.Post, team *model.Team) *model.AppError
- func (es *Service) CreateVerifyEmailToken(userID string, newEmail string) (*model.Token, error)
- func (es *Service) GetMessageForNotification(post *model.Post, translateFunc i18n.TranslateFunc) string
- func (es *Service) InitEmailBatching()
- func (es *Service) InvalidateVerifyEmailTokensForUser(userID string) *model.AppError
- func (es *Service) NewEmailTemplateData(locale string) templates.Data
- func (es *Service) SendAtUserLimitWarningEmail(email string, locale string, siteURL string) (bool, error)
- func (es *Service) SendChangeUsernameEmail(newUsername, email, locale, siteURL string) error
- func (es *Service) SendCloudTrialEndWarningEmail(userEmail, name, trialEndDate, locale, siteURL string) error
- func (es *Service) SendCloudTrialEndedEmail(userEmail, name, locale, siteURL string) error
- func (es *Service) SendCloudWelcomeEmail(userEmail, locale, teamInviteID, workSpaceName, dns, siteURL string) error
- func (es *Service) SendDeactivateAccountEmail(email string, locale, siteURL string) error
- func (es *Service) SendEmailChangeEmail(oldEmail, newEmail, locale, siteURL string) error
- func (es *Service) SendEmailChangeVerifyEmail(newUserEmail, locale, siteURL, token string) error
- func (es *Service) SendGuestInviteEmails(team *model.Team, channels []*model.Channel, senderName string, ...) error
- func (es *Service) SendInviteEmails(team *model.Team, senderName string, senderUserId string, invites []string, ...) error
- func (es *Service) SendLicenseUpForRenewalEmail(email, name, locale, siteURL, renewalLink string, daysToExpiration int) error
- func (es *Service) SendMailWithEmbeddedFiles(to, subject, htmlBody string, embeddedFiles map[string]io.Reader) error
- func (es *Service) SendMfaChangeEmail(email string, activated bool, locale, siteURL string) error
- func (es *Service) SendNoCardPaymentFailedEmail(email string, locale string, siteURL string) error
- func (es *Service) SendNotificationMail(to, subject, htmlBody string) error
- func (es *Service) SendOverUserFourteenDayWarningEmail(email string, locale string, siteURL string, overLimitDate string) (bool, error)
- func (es *Service) SendOverUserLimitNinetyDayWarningEmail(email string, locale string, siteURL string, overLimitDate string) (bool, error)
- func (es *Service) SendOverUserLimitThirtyDayWarningEmail(email string, locale string, siteURL string) (bool, error)
- func (es *Service) SendOverUserLimitWarningEmail(email string, locale string, siteURL string) (bool, error)
- func (es *Service) SendOverUserLimitWorkspaceSuspendedWarningEmail(email string, locale string, siteURL string) (bool, error)
- func (es *Service) SendOverUserSevenDayWarningEmail(email string, locale string, siteURL string) (bool, error)
- func (es *Service) SendPasswordChangeEmail(email, method, locale, siteURL string) error
- func (es *Service) SendPasswordResetEmail(email string, token *model.Token, locale, siteURL string) (bool, error)
- func (es *Service) SendPaymentFailedEmail(email string, locale string, failedPayment *model.FailedPayment, ...) (bool, error)
- func (es *Service) SendRemoveExpiredLicenseEmail(renewalLink, email string, locale, siteURL string) error
- func (es *Service) SendSignInChangeEmail(email, method, locale, siteURL string) error
- func (es *Service) SendSuspensionEmailToSupport(email string, installationID string, customerID string, subscriptionID string, ...) (bool, error)
- func (es *Service) SendUpgradeEmail(user, email, locale, siteURL, action string) (bool, error)
- func (es *Service) SendUserAccessTokenAddedEmail(email, locale, siteURL string) error
- func (es *Service) SendVerifyEmail(userEmail, locale, siteURL, token, redirect string) error
- func (es *Service) SendWelcomeEmail(userID string, email string, verified bool, disableWelcomeEmail bool, ...) error
- type ServiceConfig
Constants ¶
View Source
const ( TokenTypePasswordRecovery = "password_recovery" TokenTypeVerifyEmail = "verify_email" TokenTypeTeamInvitation = "team_invitation" TokenTypeGuestInvitation = "guest_invitation" TokenTypeCWSAccess = "cws_access_token" )
View Source
const (
EmailBatchingTaskName = "Email Batching"
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type EmailBatchingJob ¶
type EmailBatchingJob struct {
// contains filtered or unexported fields
}
func NewEmailBatchingJob ¶
func NewEmailBatchingJob(es *Service, bufferSize int) *EmailBatchingJob
func (*EmailBatchingJob) CheckPendingEmails ¶
func (job *EmailBatchingJob) CheckPendingEmails()
func (*EmailBatchingJob) Start ¶
func (job *EmailBatchingJob) Start()
type Service ¶
type Service struct { PerHourEmailRateLimiter *throttled.GCRARateLimiter PerDayEmailRateLimiter *throttled.GCRARateLimiter EmailBatching *EmailBatchingJob // contains filtered or unexported fields }
func NewService ¶
func NewService(config ServiceConfig) (*Service, error)
func (*Service) AddNotificationEmailToBatch ¶
func (*Service) CreateVerifyEmailToken ¶
func (*Service) GetMessageForNotification ¶
func (*Service) InitEmailBatching ¶
func (es *Service) InitEmailBatching()
func (*Service) InvalidateVerifyEmailTokensForUser ¶
func (*Service) NewEmailTemplateData ¶
func (*Service) SendAtUserLimitWarningEmail ¶
func (*Service) SendChangeUsernameEmail ¶
func (*Service) SendCloudTrialEndWarningEmail ¶
func (*Service) SendCloudTrialEndedEmail ¶
func (*Service) SendCloudWelcomeEmail ¶
func (es *Service) SendCloudWelcomeEmail(userEmail, locale, teamInviteID, workSpaceName, dns, siteURL string) error
SendCloudWelcomeEmail sends the cloud version of the welcome email
func (*Service) SendDeactivateAccountEmail ¶
func (*Service) SendEmailChangeEmail ¶
func (*Service) SendEmailChangeVerifyEmail ¶
func (*Service) SendGuestInviteEmails ¶
func (*Service) SendInviteEmails ¶
func (*Service) SendLicenseUpForRenewalEmail ¶
func (*Service) SendMailWithEmbeddedFiles ¶
func (*Service) SendMfaChangeEmail ¶
func (*Service) SendNoCardPaymentFailedEmail ¶
func (*Service) SendNotificationMail ¶
func (*Service) SendOverUserFourteenDayWarningEmail ¶
func (*Service) SendOverUserLimitNinetyDayWarningEmail ¶
func (*Service) SendOverUserLimitThirtyDayWarningEmail ¶
func (*Service) SendOverUserLimitWarningEmail ¶
func (*Service) SendOverUserLimitWorkspaceSuspendedWarningEmail ¶
func (*Service) SendOverUserSevenDayWarningEmail ¶
func (*Service) SendPasswordChangeEmail ¶
func (*Service) SendPasswordResetEmail ¶
func (*Service) SendPaymentFailedEmail ¶
func (*Service) SendRemoveExpiredLicenseEmail ¶
func (es *Service) SendRemoveExpiredLicenseEmail(renewalLink, email string, locale, siteURL string) error
SendRemoveExpiredLicenseEmail formats an email and uses the email service to send the email to user with link pointing to CWS to renew the user license
func (*Service) SendSignInChangeEmail ¶
func (*Service) SendSuspensionEmailToSupport ¶
func (*Service) SendUpgradeEmail ¶
SendUpgradeEmail formats an email template and sends an email to an admin specified in the email arg
func (*Service) SendUserAccessTokenAddedEmail ¶
func (*Service) SendVerifyEmail ¶
Click to show internal directories.
Click to hide internal directories.