Documentation ¶
Index ¶
- Variables
- func DiscordSendTest(t string, c string) error
- func TelegramSendTest(t string, c string) error
- type Alert
- func New(i, m string) *Alert
- func NewAlertAccessDelays(moniker, network, rpc string) *Alert
- func NewAlertAccessRestored(moniker, network string, lastSeenAt time.Time, timeDelta time.Duration) *Alert
- func NewAlertBlockMissed(moniker string, network string, missed int) *Alert
- func NewAlertBlocksDelta(moniker string, diff int64) *Alert
- func NewAlertCatchingUp(moniker, network string) *Alert
- func NewAlertGithubRelease(tagName, repoName, releaseDesc string) *Alert
- func NewAlertPeersCount(moniker, network, diff string) *Alert
- func NewAlertSynced(moniker string) *Alert
- func NewAlertVotingPower(moniker string, network string, diff string) *Alert
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 TelegramSendTest ¶
Types ¶
type Alert ¶
func NewAlertAccessDelays ¶
func NewAlertAccessRestored ¶
func NewAlertBlockMissed ¶
func NewAlertBlocksDelta ¶
func NewAlertCatchingUp ¶
func NewAlertGithubRelease ¶
func NewAlertPeersCount ¶
func NewAlertSynced ¶
func NewAlertVotingPower ¶
func (*Alert) DiscordSend ¶
func (a *Alert) DiscordSend()
func (*Alert) TelegramSend ¶
func (a *Alert) TelegramSend()
TelegramSend send message to configured telegram channel
Click to show internal directories.
Click to hide internal directories.