Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NilNotifier ¶
type NilNotifier struct{}
NilNotifier implements the glutton.PayloadNotifier interface but does nothing.
func (*NilNotifier) Configure ¶
func (n *NilNotifier) Configure(*iface.Settings) error
Configure does nothing.
func (*NilNotifier) Notify ¶
func (n *NilNotifier) Notify(*iface.PayloadRecord) error
Notify does nothing.
type SMTPNotifier ¶
type SMTPNotifier struct { Server string Port string UseTLS bool From string Password string To string Subject string }
SMTPNotifier implements the glutton.PayloadNotifier interface and delivers notifications over SMTP.
func (*SMTPNotifier) Configure ¶
func (s *SMTPNotifier) Configure(settings *iface.Settings) error
Configure configures this notifier according to settings.
func (*SMTPNotifier) Notify ¶
func (s *SMTPNotifier) Notify(payload *iface.PayloadRecord) error
Notify sends notification over SMTP.
func (*SMTPNotifier) PayloadToSMTPMessage ¶
func (s *SMTPNotifier) PayloadToSMTPMessage(payload *iface.PayloadRecord) []byte
PayloadToSMTPMessage takes payload and format it to SMTP format.
Click to show internal directories.
Click to hide internal directories.