alerting

package
v0.0.0-...-d1fbd11 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 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 email alert

func NewTelegramAlerter

func NewTelegramAlerter() *telegramAlert

NewTelegramAlerter returns telegram alerter

Types

type Email

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

Email to send mail alert

type Telegram

type Telegram interface {
	Send(msgText, botToken string, chatID int64) error
}

Telegram to send telegram alert interface

Jump to

Keyboard shortcuts

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