Versions in this module Expand all Collapse all v0 v0.1.0 Oct 6, 2025 Changes in this version + const PriorityHigh + const PriorityLow + const PriorityNormal + type Attachment struct + Color string + Fields []Field + Footer string + FooterIcon string + ImageURL string + Text string + Title string + type Field struct + Short bool + Title string + Value string + type Manager struct + func NewManager() *Manager + func (m *Manager) Broadcast(ctx context.Context, message string) []error + func (m *Manager) BroadcastAsync(ctx context.Context, message string) <-chan NotificationResult + func (m *Manager) BroadcastAsyncWithOptions(ctx context.Context, msg *Message) <-chan NotificationResult + func (m *Manager) BroadcastWithOptions(ctx context.Context, msg *Message) []error + func (m *Manager) Get(name string) (Notifier, bool) + func (m *Manager) List() []string + func (m *Manager) Register(notifier Notifier) error + func (m *Manager) Send(ctx context.Context, provider, message string) error + func (m *Manager) SendWithOptions(ctx context.Context, provider string, msg *Message) error + func (m *Manager) Unregister(name string) + type Message struct + Attachments []Attachment + Channel string + Metadata map[string]interface{} + Priority string + Text string + Title string + type NotificationError struct + Err error + Message string + Provider string + func (e *NotificationError) Error() string + func (e *NotificationError) Unwrap() error + type NotificationResult struct + Error error + Provider string + Success bool + type Notifier interface + Name func() string + Send func(ctx context.Context, message string) error + SendWithOptions func(ctx context.Context, msg *Message) error + type SlackConfig struct + DefaultChannel string + IconEmoji string + Token string + Username string + WebhookURL string + type SlackNotifier struct + func NewSlackNotifier(config SlackConfig) (*SlackNotifier, error) + func (s *SlackNotifier) GetClient() *slack.Client + func (s *SlackNotifier) Name() string + func (s *SlackNotifier) Send(ctx context.Context, message string) error + func (s *SlackNotifier) SendFile(ctx context.Context, channel, filePath, title, comment string) error + func (s *SlackNotifier) SendRichMessage(ctx context.Context, channel string, blocks []slack.Block) error + func (s *SlackNotifier) SendWithOptions(ctx context.Context, msg *Message) error + type TelegramConfig struct + BotToken string + ChatID string + HTTPClient *http.Client + ParseMode string + type TelegramNotifier struct + func NewTelegramNotifier(config TelegramConfig) (*TelegramNotifier, error) + func (t *TelegramNotifier) Name() string + func (t *TelegramNotifier) Send(ctx context.Context, message string) error + func (t *TelegramNotifier) SendPhoto(ctx context.Context, chatID, photoURL, caption string) error + func (t *TelegramNotifier) SendWithOptions(ctx context.Context, msg *Message) error