Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // PasswordReset is an event that happens when the user's password is reset. PasswordReset providers.Event = "Password Reset" // GenerateConfirmCode is an event before password reset which sends a confirm code to the user's email address. GenerateConfirmCode providers.Event = "Confirm Code" // Welcome template for new sign-ups. Welcome providers.Event = "Welcome" )
Functions ¶
This section is empty.
Types ¶
type BufferNotifier ¶
type BufferNotifier struct {
// contains filtered or unexported fields
}
BufferNotifier uses a byte buffer for notifications.
func NewBufferNotifier ¶
func NewBufferNotifier() *BufferNotifier
NewBufferNotifier creates a new notifier.
type Dependencies ¶
Dependencies contains dependencies this provider uses.
type Sender ¶
type Sender struct { Config Dependencies }
Sender is an email sender using Mailgun as a backend.
func NewMailgunSender ¶
func NewMailgunSender(cfg Config, deps Dependencies) (*Sender, error)
NewMailgunSender will connect to mailgun and return a mailgun email sender.
Click to show internal directories.
Click to hide internal directories.