Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlackListener ¶
type SlackListener struct {
Config config.SlackConfig
}
SlackListener Will send a slack notification when a monitor status changes
func (*SlackListener) OnRegister ¶
func (sl *SlackListener) OnRegister() error
func (*SlackListener) OnStatusChange ¶
func (sl *SlackListener) OnStatusChange(m *monitor.URLMonitor) error
type StatusChangeListener ¶
type StatusChangeListener interface { OnStatusChange(monitor *monitor.URLMonitor) error OnRegister() error }
type TwilioSMSListener ¶
type TwilioSMSListener struct {
Config config.TwilioSMSConfig
}
func (*TwilioSMSListener) OnRegister ¶
func (tl *TwilioSMSListener) OnRegister() error
func (*TwilioSMSListener) OnStatusChange ¶
func (tl *TwilioSMSListener) OnStatusChange(URLMonitor *monitor.URLMonitor) error
Click to show internal directories.
Click to hide internal directories.