Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMailcatcherWriter ¶
func NewMailcatcherWriter() LoggerInterface
func NewSesWriter ¶
func NewSesWriter() LoggerInterface
Types ¶
type MailcatcherWriter ¶
type MailcatcherWriter struct { Host string `json:"Host"` Subject string `json:"subject"` FromAddress string `json:"fromAddress"` RecipientAddresses []string `json:"sendTos"` Level int `json:"level"` Tls bool `json:"tls"` }
func (*MailcatcherWriter) Destroy ¶
func (s *MailcatcherWriter) Destroy()
func (*MailcatcherWriter) Flush ¶
func (s *MailcatcherWriter) Flush()
func (*MailcatcherWriter) Init ¶
func (s *MailcatcherWriter) Init(jsonconfig string) error
config like:
{ "host":"127.0.0.1:1025", "subject":"email title", "fromAddress":"from@example.com", "sendTos":["email1","email2"], "level":LevelError, "tls":false }
type SesWriter ¶
type SesWriter struct { Name string `json:"name"` Endpoint string `json:"endpoint"` AccessKey string `json:"accesskey"` SecretKey string `json:"secretkey"` Subject string `json:"subject"` FromAddress string `json:"fromAddress"` RecipientAddresses []string `json:"sendTos"` Level int `json:"level"` }
Click to show internal directories.
Click to hide internal directories.