Documentation ¶ Index ¶ type Email func (e *Email) Validate() error type Fake func (f Fake) SendEmail(ctx context.Context, email *Email) (string, error) type Mailgun func NewMailgun(client *http.Client, baseURL, apiKey, domainName string) *Mailgun func (m *Mailgun) SendEmail(ctx context.Context, email *Email) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Email ¶ type Email struct { From string To []string Cc []string Bcc []string Subject string Body string } func (*Email) Validate ¶ func (e *Email) Validate() error type Fake ¶ type Fake struct{} func (Fake) SendEmail ¶ func (f Fake) SendEmail(ctx context.Context, email *Email) (string, error) type Mailgun ¶ type Mailgun struct { Client *http.Client BaseURL string APIKey string DomainName string } func NewMailgun ¶ func NewMailgun(client *http.Client, baseURL, apiKey, domainName string) *Mailgun func (*Mailgun) SendEmail ¶ func (m *Mailgun) SendEmail(ctx context.Context, email *Email) (string, error) Source Files ¶ View all Source files common.go fake.go mailgun.go Click to show internal directories. Click to hide internal directories.