Documentation ¶
Index ¶
- func GetTableTitle(args ...interface{}) string
- func TableizeData(args ...interface{}) template.HTML
- type HeaderInfo
- type Interface
- type SmtpSender
- func (repo *SmtpSender) SendEmail(email *HeaderInfo, body string, attachments map[string][]*utils.Base64File) error
- func (repo *SmtpSender) SendEmailTable(email *HeaderInfo, tableData TableInfo, ...) error
- func (repo *SmtpSender) SendEmailTemplateFile(email *HeaderInfo, templateFile string, data interface{}, ...) error
- func (repo *SmtpSender) SendEmailTemplateString(email *HeaderInfo, templateString string, data interface{}, ...) error
- type TableInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TableizeData ¶
* Function to tableize the data
Types ¶
type HeaderInfo ¶
* Simple struct for email
type Interface ¶
type Interface interface { /** Get the specific news istem */ SendEmail(email *HeaderInfo, body string, attachments map[string][]*utils.Base64File) error /** Send html email */ SendEmailTemplateString(email *HeaderInfo, templateString string, data interface{}, attachments map[string][]*utils.Base64File) error SendEmailTemplateFile(email *HeaderInfo, templateString string, data interface{}, attachments map[string][]*utils.Base64File) error /** Send html email */ SendEmailTable(email *HeaderInfo, tableData TableInfo, attachments map[string][]*utils.Base64File) error }
* Simple email message
type SmtpSender ¶
type SmtpSender struct {
// contains filtered or unexported fields
}
* Simple struct for email
func NewSmtpSender ¶
func NewSmtpSender(configFile ...string) *SmtpSender
Provide a method to make a new AnimalRepoSql
func (*SmtpSender) SendEmail ¶
func (repo *SmtpSender) SendEmail(email *HeaderInfo, body string, attachments map[string][]*utils.Base64File) error
* Get all of the news
func (*SmtpSender) SendEmailTable ¶
func (repo *SmtpSender) SendEmailTable(email *HeaderInfo, tableData TableInfo, attachments map[string][]*utils.Base64File) error
* Get all of the news
func (*SmtpSender) SendEmailTemplateFile ¶
func (repo *SmtpSender) SendEmailTemplateFile(email *HeaderInfo, templateFile string, data interface{}, attachments map[string][]*utils.Base64File) error
* Get all of the news
func (*SmtpSender) SendEmailTemplateString ¶
func (repo *SmtpSender) SendEmailTemplateString(email *HeaderInfo, templateString string, data interface{}, attachments map[string][]*utils.Base64File) error
* Get all of the news
Click to show internal directories.
Click to hide internal directories.