Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InvitationRenderer ¶ added in v0.19.0
func (InvitationRenderer) Render ¶ added in v0.19.0
func (ir InvitationRenderer) Render(inv userv1.Invitation) (string, error)
type MailSender ¶
type MailgunSender ¶
type MailgunSender struct {
Mailgun mailgun.Mailgun
MailgunBaseUrl string
SenderAddress string
UseTestMode bool
Subject string
Body *InvitationRenderer
}
MailgunSender is a MailSender that sends e-mails via Mailgun.
func NewMailgunSender ¶
func NewMailgunSender(domain string, token string, baseUrl string, senderAddress string, body *InvitationRenderer, subject string, useTestMode bool) MailgunSender
func (*MailgunSender) Send ¶
func (m *MailgunSender) Send(ctx context.Context, recipient string, inv userv1.Invitation) (string, error)
type StdoutSender ¶ added in v0.19.0
type StdoutSender struct {
Subject string
Body *InvitationRenderer
}
StdoutSender is a MailSender that logs the e-mail to stdout.
func (*StdoutSender) Send ¶ added in v0.19.0
func (s *StdoutSender) Send(ctx context.Context, recipient string, inv userv1.Invitation) (string, error)
Click to show internal directories.
Click to hide internal directories.