Versions in this module Expand all Collapse all v0 v0.0.2 Mar 3, 2020 Changes in this version + type Config interface + GetRequiredString func(path string) (string, error) + type Contact struct + func NewContact(name, email string) *Contact + func (c *Contact) GetEmail() string + func (c *Contact) GetName() string + type DefaultErrorHandler struct + func (d DefaultErrorHandler) Error(e error) + func (d DefaultErrorHandler) Recover() + type DefaultLogger struct + func (d DefaultLogger) InfoF(category string, message string, args ...interface{}) + type Dependencies struct + Config Config + ErrorHandler ErrorHandler + Logger Logger + type Email interface + AddAttachment func(filename, contentType string, content []byte) + AddBCC func(contact *Contact) + AddCC func(contact *Contact) + AddTo func(contact *Contact) + Send func() error + SetFrom func(contact *Contact) + SetHeader func(key, value string) + SetHtmlBody func(body string) + SetReplyTo func(contact *Contact) + SetSubject func(subject string) + SetTextBody func(body string) + type ErrorHandler interface + Error func(e error) + Recover func() + type Logger interface + InfoF func(category string, message string, args ...interface{}) + type Provider interface + New func() Email