Documentation
¶
Index ¶
- type Attachment
- type Email
- type EmailWithAttachments
- type Sender
- type SenderSesSettings
- type SenderSetting
- type SenderSmtpSettings
- type SenderWithAttachments
- func NewSenderWithAttachments(ctx context.Context, config cfg.Config, logger log.Logger, name string) (SenderWithAttachments, error)
- func NewSesSender(ctx context.Context, config cfg.Config, logger log.Logger, name string) (SenderWithAttachments, error)
- func NewSesSenderWithInterfaces(logger log.Logger, client gosoSES.Client, clock clock.Clock, ...) SenderWithAttachments
- func NewSmtpSender(config cfg.Config, name string) (SenderWithAttachments, error)
- func NewSmtpSenderWithInterfaces(clientFactory clientFactory, uuid uuid.Uuid, clock clock.Clock, ...) SenderWithAttachments
- type SmtpClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶ added in v0.65.1
Attachment is a file attached to an email message.
type EmailWithAttachments ¶ added in v0.65.1
type EmailWithAttachments struct {
Email
Attachments []Attachment
}
EmailWithAttachments is an email message with one or more attachments.
type SenderSesSettings ¶ added in v0.40.5
type SenderSesSettings struct {
ClientName string `cfg:"client_name" default:"default"`
}
type SenderSetting ¶ added in v0.40.5
type SenderSetting struct {
Type string `cfg:"type" default:"ses"`
}
type SenderSmtpSettings ¶ added in v0.40.5
type SenderSmtpSettings struct {
Server string `cfg:"server"`
}
type SenderWithAttachments ¶ added in v0.65.1
type SenderWithAttachments interface {
Sender
SendEmailWithAttachments(ctx context.Context, email EmailWithAttachments) error
}
SenderWithAttachments supports messages with one or more attachments.
func NewSenderWithAttachments ¶ added in v0.65.1
func NewSesSender ¶ added in v0.40.5
func NewSesSenderWithInterfaces ¶ added in v0.40.5
func NewSmtpSender ¶ added in v0.40.5
func NewSmtpSender(config cfg.Config, name string) (SenderWithAttachments, error)
func NewSmtpSenderWithInterfaces ¶ added in v0.40.5
Source Files
¶
Click to show internal directories.
Click to hide internal directories.