Documentation ¶
Index ¶
- type Mandrill
- func (s *Mandrill) GetTemplateHTMLCode(ormService *beeorm.Engine, templateName string, ttl int) (string, error)
- func (s *Mandrill) SendTemplate(ormService *beeorm.Engine, message *Message) error
- func (s *Mandrill) SendTemplateAsync(ormService *beeorm.Engine, message *Message) error
- func (s *Mandrill) SendTemplateWithAttachments(ormService *beeorm.Engine, message *MessageAttachment) error
- func (s *Mandrill) SendTemplateWithAttachmentsAsync(ormService *beeorm.Engine, message *MessageAttachment) error
- type Message
- type MessageAttachment
- type Sender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mandrill ¶
type Mandrill struct {
// contains filtered or unexported fields
}
func NewMandrill ¶
func (*Mandrill) GetTemplateHTMLCode ¶ added in v0.8.69
func (s *Mandrill) GetTemplateHTMLCode(ormService *beeorm.Engine, templateName string, ttl int) (string, error)
Zero ttl expiration means the key has no expiration time.
func (*Mandrill) SendTemplate ¶
func (*Mandrill) SendTemplateAsync ¶
func (*Mandrill) SendTemplateWithAttachments ¶
func (s *Mandrill) SendTemplateWithAttachments(ormService *beeorm.Engine, message *MessageAttachment) error
func (*Mandrill) SendTemplateWithAttachmentsAsync ¶
func (s *Mandrill) SendTemplateWithAttachmentsAsync(ormService *beeorm.Engine, message *MessageAttachment) error
type MessageAttachment ¶
type MessageAttachment struct { Message Attachments []gochimp.Attachment }
type Sender ¶
type Sender interface { SendTemplate(ormService *beeorm.Engine, message *Message) error SendTemplateAsync(ormService *beeorm.Engine, message *Message) error SendTemplateWithAttachments(ormService *beeorm.Engine, message *MessageAttachment) error SendTemplateWithAttachmentsAsync(ormService *beeorm.Engine, message *MessageAttachment) error GetTemplateHTMLCode(ormService *beeorm.Engine, templateName string, ttl int) (string, error) }
Click to show internal directories.
Click to hide internal directories.