notification

package
v1.0.12-0...-3a330c3 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2019 License: Apache-2.0 Imports: 5 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 string, subject string, body string) error

Send send a identity verification link to a user.

type Notifier

type Notifier interface {
	Send(to string, subject string, link string) 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) *SMTPNotifier

NewSMTPNotifier create an SMTPNotifier targeting a given address.

func (*SMTPNotifier) Send

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

Send send a identity verification link to a user.

Jump to

Keyboard shortcuts

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