listener

package
v0.0.0-...-cb5e7a6 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: MIT Imports: 13 Imported by: 1

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

Jump to

Keyboard shortcuts

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