notify

package
v0.0.0-...-1e917aa Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogSender

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

func NewLogSender

func NewLogSender(log *logging.Log) *LogSender

func (*LogSender) Send

func (s *LogSender) Send(ctx context.Context, msg Message) error

type Message

type Message struct {
	To      []string
	Subject string
	Text    string
}

type SMTPSender

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

func NewSMTPSender

func NewSMTPSender(cfg config.EmailConfig) *SMTPSender

func (*SMTPSender) Send

func (s *SMTPSender) Send(ctx context.Context, msg Message) error

type Sender

type Sender interface {
	Send(ctx context.Context, msg Message) error
}

Jump to

Keyboard shortcuts

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