alerting

package
v0.0.0-...-115e79b Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmailAlerter

func NewEmailAlerter() *emailAlert

NewEmailAlerter returns emailAlert

func NewTelegramAlerter

func NewTelegramAlerter() *telegramAlert

NewTelegramAlerter returns a new instance for telegramAlert

Types

type EmailAlert

type EmailAlert interface {
	Send(msg, token, toEmail string) error
}

EmailAlert is an interface definition for email actions like Send email alert

type TelegramAlerter

type TelegramAlerter interface {
	Send(msgText, botToken string, alerthnatID int64) error
}

TelegramAlerter is an interface definition for telegram related actions like Send telegram alert

Jump to

Keyboard shortcuts

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