Documentation
¶
Index ¶
- Variables
- type Email
- func (m *Email) AddAttachment(a interface{}) (err error)
- func (m *Email) AddContent(c interface{}) (err error)
- func (m *Email) AddRecipients(r interface{}) (err error)
- func (m *Email) AddSender(s interface{}) (err error)
- func (m *Email) AddSubject(s string) (err error)
- func (m *Email) AddTemplate(t interface{}) (err error)
- func (e *Email) GetInfo() map[string]interface{}
- func (m *Email) GetPlainEmail() (email interface{})
- type Sendgrid
- func (p *Sendgrid) GetName() (name string)
- func (p *Sendgrid) Init() (err error)
- func (p *Sendgrid) NewEmail(se interface{}, s string, c interface{}) (ms interface{}, err error)
- func (p *Sendgrid) RefactorEmail(mail map[string]interface{}) (ms interface{}, err error)
- func (p *Sendgrid) SendEmail(emailI interface{}) (err error)
- func (p *Sendgrid) ToString() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Cfgfile = `provider.conf`
)
Functions ¶
This section is empty.
Types ¶
type Email ¶
type Email struct {
PlainEmail models.Email `json:"plain_email,omitempty"`
SendgridM *mail.SGMailV3 `json:"id,omitempty"`
}
func (*Email) AddAttachment ¶
func (*Email) AddContent ¶
func (*Email) AddRecipients ¶
func (*Email) AddSubject ¶
func (*Email) AddTemplate ¶
func (*Email) GetPlainEmail ¶
func (m *Email) GetPlainEmail() (email interface{})
type Sendgrid ¶
type Sendgrid struct {
ID int64 `json:"id,omitempty"`
Name string `json:"name,omitempty"`
APIKey string `json:"api_key,omitempty"`
ConunterM int64 `json:"counter_m,omitempty"`
}
func NewProvider ¶
func (*Sendgrid) RefactorEmail ¶
Click to show internal directories.
Click to hide internal directories.