notifications

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendEmailWithConfig

func SendEmailWithConfig(_ context.Context, config *NotificationChannelConfig, subject, body string) error

SendEmailWithConfig sends an alert email using the provided configuration.

Types

type EmailConfig

type EmailConfig struct {
	To              []string
	SubjectTemplate string
	BodyTemplate    string
}

EmailConfig holds email-specific configuration

type NotificationChannelConfig

type NotificationChannelConfig struct {
	SMTP  SMTPConfig
	Email EmailConfig
}

NotificationChannelConfig combines SMTP and email configuration

type SMTPConfig

type SMTPConfig struct {
	Host     string
	Port     int
	Username string
	Password string
	From     string
}

SMTPConfig holds SMTP configuration for sending emails

Jump to

Keyboard shortcuts

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