notification

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotifyAll

func NotifyAll(cfg *config.Config, subject, message string)

Types

type APINotifier

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

func NewAPINotifier

func NewAPINotifier(cfg *config.Config) *APINotifier

func (*APINotifier) Send

func (n *APINotifier) Send(subject, message string) error

type EmailNotifier

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

EmailNotifier manages email notifications

func NewEmailNotifier

func NewEmailNotifier(cfg *config.Config) *EmailNotifier

NewEmailNotifier initializes an EmailNotifier

func (*EmailNotifier) Send

func (n *EmailNotifier) Send(subject, message string) error

Send sends an email using the HTML template and provided arguments

type RabbitMQNotifier

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

func NewRabbitMQNotifier

func NewRabbitMQNotifier(cfg *config.Config) *RabbitMQNotifier

NewRabbitMQNotifier initializes the RabbitMQ notifier

func (*RabbitMQNotifier) Send

func (n *RabbitMQNotifier) Send(subject, message string) error

type SlackNotifier

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

SlackNotifier manages Slack notifications

func NewSlackNotifier

func NewSlackNotifier(cfg *config.Config) *SlackNotifier

NewSlackNotifier initializes a SlackNotifier

func (*SlackNotifier) Send

func (n *SlackNotifier) Send(subject, message string) error

Send formats and sends a structured message to Slack

type TelegramNotifier

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

TelegramNotifier manages Telegram notifications

func NewTelegramNotifier

func NewTelegramNotifier(cfg *config.Config) *TelegramNotifier

NewTelegramNotifier initializes a TelegramNotifier

func (*TelegramNotifier) Send

func (n *TelegramNotifier) Send(subject, message string) error

Send formats and sends a structured message to Telegram with emojis

Jump to

Keyboard shortcuts

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