Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailSender ¶
type EmailSender interface { SendEmail(to []*mail.Email, contentType, subject, body string) (*rest.Response, error) SendEmailFromTemplate(user *models.User, subject string, templateLink string) (*rest.Response, error) }
func GetEmailSender ¶
func GetEmailSender(c context.Context) EmailSender
func NewSendGridEmailSender ¶
func NewSendGridEmailSender(config *viper.Viper) EmailSender
type FakeEmailSender ¶
type FakeEmailSender struct{}
func (*FakeEmailSender) SendEmailFromTemplate ¶
type Redis ¶
func (*Redis) GetValueForKey ¶
Gets the object from the redis store, if not found, returns an err
func (*Redis) InvalidateObject ¶
InvalidateObject an object in the redis store.
func (*Redis) SetValueForKey ¶
func (*Redis) UpdateEmailRateLimit ¶
type SendGridEmailSender ¶
type SendGridEmailSender struct {
// contains filtered or unexported fields
}
func (*SendGridEmailSender) SendEmailFromTemplate ¶
Click to show internal directories.
Click to hide internal directories.