alert

package
v0.0.0-...-3f5e15c Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Importance = importance{
	Urgent:  urgent,
	Warning: warning,
	Info:    info,
	OK:      ok,
	GH:      gh,
}

Functions

func DiscordSendTest

func DiscordSendTest(t string, c string) error

func TelegramSendTest

func TelegramSendTest(t string, c string) error

Types

type Alert

type Alert struct {
	Importance string
	Message    string
}

func New

func New(i, m string) *Alert

func NewAlertAccessDelays

func NewAlertAccessDelays(moniker, network, rpc string) *Alert

func NewAlertAccessRestored

func NewAlertAccessRestored(moniker,
	network string,
	lastSeenAt time.Time,
	timeDelta time.Duration) *Alert

func NewAlertBlockMissed

func NewAlertBlockMissed(moniker string, network string, missed int) *Alert

func NewAlertBlocksDelta

func NewAlertBlocksDelta(moniker string, diff int64) *Alert

func NewAlertCatchingUp

func NewAlertCatchingUp(moniker, network string) *Alert

func NewAlertGithubRelease

func NewAlertGithubRelease(tagName, repoName, releaseDesc string) *Alert

func NewAlertPeersCount

func NewAlertPeersCount(moniker, network, diff string) *Alert

func NewAlertSynced

func NewAlertSynced(moniker string) *Alert

func NewAlertVotingPower

func NewAlertVotingPower(moniker string, network string, diff string) *Alert

func (*Alert) DiscordSend

func (a *Alert) DiscordSend()

func (*Alert) Send

func (a *Alert) Send()

New creates new alert in gorutine

func (*Alert) TelegramSend

func (a *Alert) TelegramSend()

TelegramSend send message to configured telegram channel

Jump to

Keyboard shortcuts

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