telegramBot

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatAlertHtml

func FormatAlertHtml(message webhook.Message, toTz *time.Location) (string, error)

func RunBot

func RunBot(
	token string,
	alertmanagerMessages <-chan webhook.Message,
	recipients []Recipient,
	tz *time.Location,
	logger *log.Logger,
	messagesSentCounter, messagesSendingErrorCounter prometheus.Counter,
)

Types

type Recipient

type Recipient struct {
	// contains filtered or unexported fields
}

func NewRecipient

func NewRecipient(recipient string) *Recipient

func (*Recipient) Recipient

func (r *Recipient) Recipient() string

Jump to

Keyboard shortcuts

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