listener

package
v0.0.0-...-20583e8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2020 License: MIT Imports: 13 Imported by: 0

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 TelegramListener

type TelegramListener struct {
	Config config.TelegramConfig
}

TelegramListener Will send a telegram notification when a monitor status changes

func (*TelegramListener) OnRegister

func (tg *TelegramListener) OnRegister() error

func (*TelegramListener) OnStatusChange

func (tg *TelegramListener) OnStatusChange(m *monitor.URLMonitor) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL