notification

package
v4.31.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileNotifier

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

FileNotifier a notifier to send emails to SMTP servers.

func NewFileNotifier

func NewFileNotifier(configuration schema.FileSystemNotifierConfiguration) *FileNotifier

NewFileNotifier create an FileNotifier writing the notification into a file.

func (*FileNotifier) Send

func (n *FileNotifier) Send(recipient, subject, body, _ string) error

Send send a identity verification link to a user.

func (*FileNotifier) StartupCheck

func (n *FileNotifier) StartupCheck(_ *logrus.Logger) (err error)

StartupCheck implements the startup check provider interface.

type Notifier

type Notifier interface {
	Send(recipient, subject, body, htmlBody string) (err error)
	StartupCheck(logger *logrus.Logger) (err error)
}

Notifier interface for sending the identity verification link.

type SMTPNotifier

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

SMTPNotifier a notifier to send emails to SMTP servers.

func NewSMTPNotifier

func NewSMTPNotifier(configuration *schema.SMTPNotifierConfiguration, certPool *x509.CertPool) *SMTPNotifier

NewSMTPNotifier creates a SMTPNotifier using the notifier configuration.

func (*SMTPNotifier) Send

func (n *SMTPNotifier) Send(recipient, title, body, htmlBody string) error

Send is used to send an email to a recipient.

func (*SMTPNotifier) StartupCheck

func (n *SMTPNotifier) StartupCheck(_ *logrus.Logger) (err error)

StartupCheck implements the startup check provider interface.

Jump to

Keyboard shortcuts

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