Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalDriver ¶
type LocalDriver struct {
// contains filtered or unexported fields
}
LocalDriver sends emails via SMTP or sendmail
func NewLocalDriver ¶
func NewLocalDriver() (*LocalDriver, error)
NewLocalDriver creates a new local SMTP/sendmail driver
type LogDriver ¶
type LogDriver struct {
// contains filtered or unexported fields
}
LogDriver logs emails instead of sending them (for development)
func (*LogDriver) ClearLog ¶
func (d *LogDriver) ClearLog()
ClearLog clears the logged emails (for testing)
type MailgunDriver ¶
type MailgunDriver struct {
// contains filtered or unexported fields
}
MailgunDriver sends emails via Mailgun API
func NewMailgunDriver ¶
func NewMailgunDriver() (*MailgunDriver, error)
NewMailgunDriver creates a new Mailgun driver
func (*MailgunDriver) ParseWebhook ¶
func (d *MailgunDriver) ParseWebhook(body []byte) (map[string]interface{}, error)
ParseWebhook parses a Mailgun webhook event (for future use)
func (*MailgunDriver) VerifyWebhookSignature ¶
func (d *MailgunDriver) VerifyWebhookSignature(timestamp, token, signature string) bool
VerifyWebhookSignature verifies Mailgun webhook signature (for future use)
type PostmarkDriver ¶
type PostmarkDriver struct {
// contains filtered or unexported fields
}
PostmarkDriver sends emails via Postmark API
func NewPostmarkDriver ¶
func NewPostmarkDriver() (*PostmarkDriver, error)
NewPostmarkDriver creates a new Postmark driver
Click to show internal directories.
Click to hide internal directories.