Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogMailClient ¶
type LogMailClient struct {
// contains filtered or unexported fields
}
func NewLogMailClient ¶
func NewLogMailClient(logger *slog.Logger) *LogMailClient
type MailClient ¶
type MailClient struct {
// MailSender provides the actual implementation to send emails
MailSender MailClientInterface
// contains filtered or unexported fields
}
MailClient provides a client for sending email This is purposely not completed because there are many different methods and services for sending email, many of which are very different. Choose what works best for you and populate the methods below
func NewMailClient ¶
func NewMailClient(cfg *config.Config, sender MailClientInterface) (*MailClient, error)
NewMailClient creates a new MailClient
type MailClientInterface ¶
type ResendMailClient ¶
type ResendMailClient struct {
// contains filtered or unexported fields
}
func NewResendMailClient ¶
func NewResendMailClient(apiKey string) *ResendMailClient
func NewResendMailClientWithSender ¶
func NewResendMailClientWithSender(sender resendSender) *ResendMailClient
type SMTPMailClient ¶
func NewSMTPMailClient ¶
func NewSMTPMailClient(host string, port int) *SMTPMailClient
func NewSMTPMailClientWithAuth ¶
func NewSMTPMailClientWithAuth(host string, port int, user, pass string) *SMTPMailClient
Click to show internal directories.
Click to hide internal directories.