Documentation ¶
Index ¶
- type Sender
- func (sender *Sender) Init(senderSettings map[string]string, logger *logging.Logger) error
- func (sender *Sender) MakeMessage(events notifier.EventsData, contact notifier.ContactData, ...) *gomail.Message
- func (sender *Sender) SendEvents(events notifier.EventsData, contact notifier.ContactData, ...) error
- func (sender *Sender) SetLogger(logger *logging.Logger)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sender ¶
type Sender struct { From string SMTPhost string SMTPport int FrontURI string InsecureTLS bool Password string Username string }
Sender implements moira sender interface via pushover
func (*Sender) MakeMessage ¶
func (sender *Sender) MakeMessage(events notifier.EventsData, contact notifier.ContactData, trigger notifier.TriggerData, throttled bool) *gomail.Message
MakeMessage prepare message to send
func (*Sender) SendEvents ¶
func (sender *Sender) SendEvents(events notifier.EventsData, contact notifier.ContactData, trigger notifier.TriggerData, throttled bool) error
SendEvents implements Sender interface Send
Click to show internal directories.
Click to hide internal directories.