Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultErrorHandler ¶
type DefaultErrorHandler struct{}
func (DefaultErrorHandler) Error ¶
func (d DefaultErrorHandler) Error(e error)
func (DefaultErrorHandler) Recover ¶
func (d DefaultErrorHandler) Recover()
type DefaultLogger ¶
type DefaultLogger struct{}
func (DefaultLogger) InfoF ¶
func (d DefaultLogger) InfoF(category string, message string, args ...interface{})
type Dependencies ¶
type Dependencies struct {
Config Config
Logger Logger
ErrorHandler ErrorHandler
}
type Email ¶
type Email interface {
SetFrom(contact *Contact)
AddTo(contact *Contact)
AddCC(contact *Contact)
AddBCC(contact *Contact)
SetReplyTo(contact *Contact)
SetSubject(subject string)
SetHeader(key, value string)
SetTextBody(body string)
SetHtmlBody(body string)
AddAttachment(filename, contentType string, content []byte)
Send() error
}
type ErrorHandler ¶
type ErrorHandler interface {
Error(e error)
Recover()
}
Click to show internal directories.
Click to hide internal directories.