notifiers

package
v0.0.0-...-36bd69e Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailConfig

type EmailConfig struct {
	SMTPHost    string
	SMTPPort    int
	Username    string
	Password    string
	FromAddress string
}

type EmailNotification

type EmailNotification struct {
	ToAddress string
	Subject   string
	Body      string
}

type EmailWorker

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

func NewEmailWorker

func NewEmailWorker(cfg EmailConfig) *EmailWorker

func (*EmailWorker) Close

func (w *EmailWorker) Close()

func (*EmailWorker) Send

func (w *EmailWorker) Send(notification *EmailNotification) error

type TelegramConfig

type TelegramConfig struct {
	BotToken   string
	ChatID     string
	APIBaseURL string
}

type TelegramNotification

type TelegramNotification struct {
	Message string
}

type TelegramWorker

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

func NewTelegramWorker

func NewTelegramWorker(cfg TelegramConfig) *TelegramWorker

func (*TelegramWorker) Close

func (w *TelegramWorker) Close()

func (*TelegramWorker) QueueLen

func (w *TelegramWorker) QueueLen() int

QueueLen returns the current number of buffered notifications awaiting delivery. Intended for tests and operational diagnostics; not part of the public notifier contract.

func (*TelegramWorker) Send

func (w *TelegramWorker) Send(notification *TelegramNotification) error

Jump to

Keyboard shortcuts

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